diff options
author | Gabriel Filion <lelutin@gmail.com> | 2010-10-25 11:55:15 -0400 |
---|---|---|
committer | Gabriel Filion <lelutin@gmail.com> | 2010-10-25 14:12:18 -0400 |
commit | e2578c3b9820e9ff17f8a8881b8b22b5e241ee21 (patch) | |
tree | 70dbe662f0c17c253f43a9b8fc75fa3523e73877 /manifests | |
parent | 3c88b19dd33b4da1f37e2c08c981ccbcbe5a45a8 (diff) | |
download | puppet-apt-e2578c3b9820e9ff17f8a8881b8b22b5e241ee21.tar.gz puppet-apt-e2578c3b9820e9ff17f8a8881b8b22b5e241ee21.tar.bz2 |
Add $main_apt_source
Currently, it's either we use the default source that's hardcoded in the
sources.list template or we redefine entirely this template.
Make it easier to just change the URL of the apt source while using the
rest of the default template by adding a $main_apt_source variable.
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index ea187f3..8588932 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -10,6 +10,14 @@ class apt { require => undef, } + $real_main_apt_source = $main_apt_source ? { + '' => $operatingsystem ? { + "Ubuntu" => "http://de.archive.ubuntu.com/ubuntu/", + default => "http://ftp.debian.org/debian/", + }, + default => $main_apt_source, + } + include lsb config_file { # include main, security and backports |