[bug] Deploy preferene snippets before apt_refresh

When pinning packages with apt::preferences_snippet,
we need to make sure these get deployed before an
`apt-get update` is triggered, so pinned packages can
get installed in the right way with a single puppetrun.
This commit is contained in:
varac 2016-01-05 11:39:57 +01:00
parent 185ac30062
commit fa1751c4de

View file

@ -31,7 +31,8 @@ define apt::preferences_snippet (
file { "/etc/apt/preferences.d/${name}":
ensure => $ensure,
owner => root, group => 0, mode => '0644';
owner => root, group => 0, mode => '0644',
before => Exec['refresh_apt'];
}
case $source {