2010-10-17 13:58:59 +02:00
|
|
|
class apt::preferences {
|
|
|
|
|
2011-08-05 10:57:13 +02:00
|
|
|
concat::fragment{"apt_preferences_header":
|
2012-06-06 02:31:15 +02:00
|
|
|
content => $apt::custom_preferences ? {
|
|
|
|
'' => $::operatingsystem ? {
|
2012-12-05 19:46:23 +01:00
|
|
|
'debian' => template("apt/${::operatingsystem}/preferences_${apt::codename}.erb"),
|
|
|
|
'ubuntu' => template("apt/${::operatingsystem}/preferences_${apt::codename}.erb"),
|
2010-11-10 10:11:18 +01:00
|
|
|
},
|
2010-10-21 01:59:41 +02:00
|
|
|
default => $custom_preferences
|
|
|
|
},
|
2011-08-05 10:57:13 +02:00
|
|
|
order => 00,
|
|
|
|
target => '/etc/apt/preferences',
|
2010-10-17 14:36:28 +02:00
|
|
|
}
|
|
|
|
|
2011-08-05 10:57:13 +02:00
|
|
|
concat{'/etc/apt/preferences':
|
2010-10-17 13:58:59 +02:00
|
|
|
alias => apt_config,
|
|
|
|
# only update together
|
2011-08-05 10:57:13 +02:00
|
|
|
require => File["/etc/apt/sources.list"],
|
|
|
|
owner => root, group => 0, mode => 0644;
|
2010-10-17 13:58:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|