2012-04-11 23:54:13 +02:00
|
|
|
define apt::conf (
|
2015-07-23 18:15:53 +02:00
|
|
|
$content = undef,
|
|
|
|
$ensure = present,
|
2016-04-19 12:28:45 +02:00
|
|
|
$priority = 50,
|
2015-07-23 18:15:53 +02:00
|
|
|
$notify_update = undef,
|
2012-05-03 18:51:14 +02:00
|
|
|
) {
|
2015-04-14 12:41:57 +02:00
|
|
|
|
|
|
|
unless $ensure == 'absent' {
|
|
|
|
unless $content {
|
|
|
|
fail('Need to pass in content parameter')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-24 23:57:31 +01:00
|
|
|
apt::setting { "conf-${name}":
|
2015-07-23 18:15:53 +02:00
|
|
|
ensure => $ensure,
|
|
|
|
priority => $priority,
|
|
|
|
content => template('apt/_conf_header.erb', 'apt/conf.erb'),
|
|
|
|
notify_update => $notify_update,
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
}
|