diff options
author | varac <varacanero@zeromail.org> | 2015-06-09 09:23:37 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-06-09 09:23:37 +0200 |
commit | 0c12ab564590374c09ffe7a8049cab6d8c8b41fc (patch) | |
tree | d26674dfb6dd5abfc4e7f84bf2a19ee9fb5a08fc /puppet/modules/site_apt/manifests | |
parent | 5c0fe23dccc285adde85e45a5ee41922d2e5a891 (diff) | |
parent | 18e247ae29e7ee787e350724e2884da0a74bbd63 (diff) |
Merge branch '0.7.0' into develop
Diffstat (limited to 'puppet/modules/site_apt/manifests')
-rw-r--r-- | puppet/modules/site_apt/manifests/init.pp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/puppet/modules/site_apt/manifests/init.pp b/puppet/modules/site_apt/manifests/init.pp index c32c29c4..cf49f870 100644 --- a/puppet/modules/site_apt/manifests/init.pp +++ b/puppet/modules/site_apt/manifests/init.pp @@ -1,3 +1,4 @@ +# setup apt on all nodes class site_apt { $sources = hiera('sources') @@ -31,12 +32,19 @@ class site_apt { priority => 999 } + apt::preferences_snippet { 'leap': + priority => 999, + package => '*', + pin => 'origin "deb.leap.se"' + } + # All packages should be installed _after_ refresh_apt is called, # which does an apt-get update. # There is one exception: # The creation of sources.list depends on the lsb package File['/etc/apt/preferences'] -> + Apt::Preferences_snippet <| |> -> Exec['refresh_apt'] -> - Package <| ( title != 'lsb' ) |> + Package <| ( title != 'lsb' ) |> } |