Initialize $release, $next_release, $codename, $next_codename in init.pp.
This commit is contained in:
parent
d65e1573a9
commit
9139d33562
1 changed files with 15 additions and 0 deletions
|
@ -16,6 +16,21 @@ class apt {
|
||||||
require => undef,
|
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 {
|
case $custom_sources_list {
|
||||||
'': {
|
'': {
|
||||||
include apt::default_sources_list
|
include apt::default_sources_list
|
||||||
|
|
Loading…
Reference in a new issue