aboutsummaryrefslogtreecommitdiff
path: root/manifests/apt_conf.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/apt_conf.pp')
-rw-r--r--manifests/apt_conf.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/manifests/apt_conf.pp b/manifests/apt_conf.pp
index d78fb9b..f446c69 100644
--- a/manifests/apt_conf.pp
+++ b/manifests/apt_conf.pp
@@ -1,7 +1,8 @@
define apt::apt_conf(
$ensure = 'present',
$source = '',
- $content = undef )
+ $content = undef,
+ $refresh_apt = true )
{
if $source == '' and $content == undef {
@@ -22,7 +23,6 @@ define apt::apt_conf(
owner => root,
group => 0,
mode => '0644',
- notify => Exec['refresh_apt'],
}
if $source {
@@ -35,4 +35,11 @@ define apt::apt_conf(
content => $content,
}
}
+
+ if $refresh_apt {
+ File["/etc/apt/apt.conf.d/${name}"] {
+ notify => Exec['refresh_apt'],
+ }
+ }
+
}