mirror of https://github.com/zulip/zulip.git
24 lines
556 B
Puppet
24 lines
556 B
Puppet
define apt::conf($ensure, $content = false, $source = false) {
|
|
if $content {
|
|
file {"/etc/apt/apt.conf.d/${name}":
|
|
ensure => $ensure,
|
|
content => $content,
|
|
owner => "root",
|
|
group => "root",
|
|
before => Exec['apt-get_update'],
|
|
notify => Exec['apt-get_update'],
|
|
}
|
|
}
|
|
|
|
if $source {
|
|
file {"/etc/apt/apt.conf.d/${name}":
|
|
ensure => $ensure,
|
|
source => $source,
|
|
owner => "root",
|
|
group => "root",
|
|
before => Exec['apt-get_update'],
|
|
notify => Exec['apt-get_update'],
|
|
}
|
|
}
|
|
}
|