diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-06 11:17:30 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-06 11:17:30 +0200 |
commit | 9139d3356280c9ed82e36c55d344315524c0d2f9 (patch) | |
tree | 15d14a8810e80de45ca0447fabe4dd68cd99d98b /manifests | |
parent | d65e1573a9f421d562eef6a11cbde99700036011 (diff) | |
download | puppet-apt-9139d3356280c9ed82e36c55d344315524c0d2f9.tar.gz puppet-apt-9139d3356280c9ed82e36c55d344315524c0d2f9.tar.bz2 |
Initialize $release, $next_release, $codename, $next_codename in init.pp.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 774f9e4..be3e17c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -16,6 +16,21 @@ class apt { require => undef, } + # init $release, $next_release, $codename, $next_codename + case $lsbdistcodename { + '': { + include lsb + $codename = $lsbdistcodename + $release = $lsbdistrelease + } + default: { + $codename = $lsbdistcodename + $release = debian_release($codename) + } + } + $next_codename = debian_nextcodename($codename) + $next_release = debian_nextrelease($release) + case $custom_sources_list { '': { include apt::default_sources_list |