module-apt/manifests/preferences.pp

23 lines
628 B
ObjectPascal
Raw Normal View History

class apt::preferences {
concat::fragment{"apt_preferences_header":
2012-06-06 02:31:15 +02:00
content => $apt::custom_preferences ? {
'' => $::operatingsystem ? {
'debian' => template("apt/${::operatingsystem}/preferences_${apt::codename}.erb"),
'ubuntu' => template("apt/${::operatingsystem}/preferences_${apt::codename}.erb"),
},
default => $custom_preferences
},
order => 00,
target => '/etc/apt/preferences',
2010-10-17 14:36:28 +02:00
}
concat{'/etc/apt/preferences':
alias => apt_config,
# only update together
require => File["/etc/apt/sources.list"],
owner => root, group => 0, mode => 0644;
}
}