diff options
author | intrigeri <intrigeri@boum.org> | 2016-06-29 14:53:57 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2016-06-29 14:53:57 +0000 |
commit | a8755365321bccf7a5c7a9a0fc9883b3176a1d37 (patch) | |
tree | 3d538541127319862fee0e6a4feb5e576392e066 /manifests/params.pp | |
parent | 53c49fe2ae7bc74ab01457ffba8a6efd24fd44f9 (diff) | |
parent | 8859eba152a5a504db9816b64fec6720f7ba5f14 (diff) |
Merge remote-tracking branch 'lelutin-gitlab/backports_follow_debian_url' into shared-master
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index 28af06e..a70dac1 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -9,14 +9,21 @@ class apt::params () { $ubuntu_url = 'http://archive.ubuntu.com/ubuntu' $backports_url = $::debian_codename ? { 'squeeze' => 'http://backports.debian.org/debian-backports/', - default => $::operatingsystem ? { - 'Ubuntu' => $ubuntu_url, - default => $debian_url, - } + default => false, } $lts_url = $debian_url $volatile_url = 'http://volatile.debian.org/debian-volatile/' - $repos = 'auto' + case $::operatingsystem { + 'debian': { + $repos = 'main contrib non-free' + } + 'ubuntu': { + $repos = 'main restricted universe multiverse' + } + default: { + fail("Unsupported system '${::operatingsystem}'.") + } + } $custom_preferences = '' $custom_key_dir = false } |