Skip to content
Snippets Groups Projects
Commit a17f4901 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

load apt preferences file for debuild tools

parent 01577ed2
No related branches found
No related tags found
No related merge requests found
......@@ -7,20 +7,18 @@ class su_debuild {
### PACKAGES ###
# Pin some packages to Debian jessie-backports.
if ($::lsbdistcodename == 'jessie') {
file {
'/etc/apt/preferences.d/debian-build':
ensure => present,
source => 'puppet:///modules/su_debuild/etc/apt/preferences.d/debian-build.jessie',
mode => '0644',
notify => Exec['apt-get_update_debuild_jessie'];
}
file {
'/etc/apt/preferences.d/debian-build':
ensure => present,
content => template('su_debuild/etc/apt/preferences.d/debian-build.erb'),
mode => '0644',
notify => Exec['apt-get_update_debuild_jessie'];
}
# Triggered to refresh local package lists.
exec { 'apt-get_update_debuild_jessie':
command => 'apt-get update',
refreshonly => true,
}
# Triggered to refresh local package lists.
exec { 'apt-get_update_debuild_jessie':
command => 'apt-get update',
refreshonly => true,
}
# Packages needed for package building. Add ant here because although we
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment