aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorGabriel Filion <lelutin@gmail.com>2012-04-09 01:39:29 -0400
committerGabriel Filion <lelutin@gmail.com>2012-04-09 01:39:29 -0400
commita835369958226bac2d010fedb50ed5ef98b5906f (patch)
tree844fb93717aa3d3bb112886757aeb746cd35eecb /manifests/init.pp
parent4d0ddd005795592f56496d8d39dc37ee86fac038 (diff)
downloadpuppet-apt-a835369958226bac2d010fedb50ed5ef98b5906f.tar.gz
puppet-apt-a835369958226bac2d010fedb50ed5ef98b5906f.tar.bz2
Force an apt-get update when changing an apt::sources_list
sources_list doesn't currently force puppet to run 'apt-get update' after creating/modifying/removing files in sources.list.d. Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0d58c61..4d65e77 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -85,7 +85,8 @@ class apt {
'' => template( "apt/$operatingsystem/sources.list.erb"),
default => $custom_sources_list
},
- require => Package['lsb'];
+ require => Package['lsb'],
+ notify => Exec['refresh_apt'],
}
apt_conf { "02show_upgraded":