Backwards compatibility with older versions of puppet
This commit is contained in:
parent
535a5b6dad
commit
e52145110c
1 changed files with 4 additions and 4 deletions
|
@ -72,13 +72,13 @@ class apt(
|
||||||
}
|
}
|
||||||
|
|
||||||
$sources_list_content = $_purge['sources.list'] ? {
|
$sources_list_content = $_purge['sources.list'] ? {
|
||||||
false => undef,
|
|
||||||
true => "# Repos managed by puppet.\n",
|
true => "# Repos managed by puppet.\n",
|
||||||
|
default => undef,
|
||||||
}
|
}
|
||||||
|
|
||||||
$preferences_ensure = $_purge['preferences'] ? {
|
$preferences_ensure = $_purge['preferences'] ? {
|
||||||
false => file,
|
|
||||||
true => absent,
|
true => absent,
|
||||||
|
default => file,
|
||||||
}
|
}
|
||||||
|
|
||||||
if $_update['frequency'] == 'always' {
|
if $_update['frequency'] == 'always' {
|
||||||
|
|
Loading…
Reference in a new issue