diff options
author | Gabriel Filion <lelutin@gmail.com> | 2013-01-02 07:32:12 -0500 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2013-01-02 07:32:12 -0500 |
commit | cda713fcf6bd189c3e870c9e466aa5f41d1847b6 (patch) | |
tree | 9cf8ba23ed7255c23f3acf788f4f79f84d13e2df /manifests/init.pp | |
parent | d1d7f7b9bd73cfd982fe3c520f1de266c5836f8c (diff) | |
parent | 37e5594770f4e8570f3acbb6e15ae6f0286ca379 (diff) |
Merge branch 'master' into issue_3953
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 3caa376..3df48c3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -21,7 +21,7 @@ class apt { } $debian_url = $apt_debian_url ? { - '' => 'http://cdn.debian.net/debian/', + '' => 'http://http.debian.net/debian/', default => "${apt_debian_url}", } $security_url = $apt_security_url ? { @@ -40,6 +40,11 @@ class apt { '' => 'http://archive.ubuntu.com/ubuntu', default => "${apt_ubuntu_url}", } + $disable_update = $apt_disable_update ? { + '' => false, + default => $apt_disable_update + } + case $operatingsystem { 'debian': { $repos = $apt_repos ? { @@ -68,6 +73,9 @@ class apt { $codename = $lsbdistcodename $release = $lsbdistrelease } + 'n/a': { + fail("Unknown lsbdistcodename reported by facter: '$lsbdistcodename', please fix this by setting this variable in your manifest.") + } default: { $codename = $lsbdistcodename $release = debian_release($codename) |