X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=e55cafdfd1f4fbb493247f88b5a497270eec743e;hb=9538d23305079cfe2a08f3605b2fdfc2b0ffd8c0;hp=e9eb654cb81552c24cbe6f1187ba7d36e321fc49;hpb=3684f88372959cb8dd6eb5bce99b6a07db43f058;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index e9eb654..e55cafd 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -32,7 +32,7 @@ define apt::source( group => root, mode => '0644', content => template("${module_name}/source.list.erb"), - notify => Exec['apt update'], + notify => Exec['apt_update'], } if ($pin != false) and ($ensure == 'present') { @@ -61,4 +61,9 @@ define apt::source( before => File["${name}.list"], } } + + # Need anchor to provide containment for dependencies. + anchor { "apt::source::${name}": + require => Class['apt::update'], + } }