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