diff options
author | varac <varacanero@zeromail.org> | 2016-11-04 14:39:23 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-11-04 14:39:23 +0100 |
commit | 5d001efb65f4ac2afa39d17b7b62d4f861f450a3 (patch) | |
tree | 88b282297150f4890fce19182206dc9bfa0f3a9d /manifests/params.pp | |
parent | 33c61e8df59db1abbed379a9e9790946060a8f1e (diff) | |
parent | 584b7aad338206026d62d846122e6bef532a2d2a (diff) |
Merge remote-tracking branch 'shared/master' into leap_master
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/manifests/params.pp b/manifests/params.pp index 28af06e..2b18eb5 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -7,16 +7,19 @@ class apt::params () { $debian_url = 'http://httpredir.debian.org/debian/' $security_url = 'http://security.debian.org/' $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, - } - } $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 } |