aboutsummaryrefslogtreecommitdiff
path: root/manifests/sources_list.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-17 18:52:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-17 18:52:18 -0200
commit8bfd579a82b6f824b0184bb2e33a384254426eec (patch)
tree7fb5cb27698d03883375b6977736f37359651c3e /manifests/sources_list.pp
parent2fea12cace6595cb545402fd08dc0a5c78e35507 (diff)
parent02bd3269948f1a3c5a586e581a7fec22da69a2cc (diff)
downloadpuppet-apt-8bfd579a82b6f824b0184bb2e33a384254426eec.tar.gz
puppet-apt-8bfd579a82b6f824b0184bb2e33a384254426eec.tar.bz2
Merge branch 'master' of git://labs.riseup.net/module_apt
Diffstat (limited to 'manifests/sources_list.pp')
-rw-r--r--manifests/sources_list.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/sources_list.pp b/manifests/sources_list.pp
index 86b35a7..499116d 100644
--- a/manifests/sources_list.pp
+++ b/manifests/sources_list.pp
@@ -11,9 +11,15 @@ define apt::sources_list (
fail("Only one of \$source or \$content must specified for apt_sources_snippet ${name}")
}
+ include apt::dot_d_directories
+
+ # One would expect the 'file' resource on sources.list.d to trigger an
+ # apt-get update when files are added or modified in the directory, but it
+ # apparently doesn't.
file { "/etc/apt/sources.list.d/${name}":
ensure => $ensure,
- owner => root, group => 0, mode => 0644;
+ owner => root, group => 0, mode => 0644,
+ notify => Exec['refresh_apt'],
}
if $source {