2012-04-11 23:54:13 +02:00
|
|
|
define apt::conf (
|
2015-04-14 12:41:57 +02:00
|
|
|
$content = undef,
|
2012-05-04 01:59:13 +02:00
|
|
|
$ensure = present,
|
2015-02-24 23:57:31 +01:00
|
|
|
$priority = '50',
|
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-02-26 19:12:53 +01:00
|
|
|
ensure => $ensure,
|
|
|
|
priority => $priority,
|
|
|
|
content => template('apt/_header.erb', 'apt/conf.erb'),
|
2012-04-11 23:54:13 +02:00
|
|
|
}
|
|
|
|
}
|