2012-09-20 20:54:38 +02:00
|
|
|
define apt::conf($ensure, $content = false, $source = false) {
|
|
|
|
if $content {
|
|
|
|
file {"/etc/apt/apt.conf.d/${name}":
|
|
|
|
ensure => $ensure,
|
|
|
|
content => $content,
|
2013-11-14 03:44:10 +01:00
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
2012-09-20 20:54:38 +02:00
|
|
|
before => Exec['apt-get_update'],
|
|
|
|
notify => Exec['apt-get_update'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if $source {
|
|
|
|
file {"/etc/apt/apt.conf.d/${name}":
|
|
|
|
ensure => $ensure,
|
|
|
|
source => $source,
|
2013-11-14 03:44:10 +01:00
|
|
|
owner => "root",
|
|
|
|
group => "root",
|
2012-09-20 20:54:38 +02:00
|
|
|
before => Exec['apt-get_update'],
|
|
|
|
notify => Exec['apt-get_update'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|