apt::reboot_required_notify: get rid of temporary variable.
This commit is contained in:
parent
89a024678e
commit
70118955f6
1 changed files with 1 additions and 8 deletions
|
@ -1,13 +1,6 @@
|
||||||
class apt::reboot_required_notify {
|
class apt::reboot_required_notify {
|
||||||
|
|
||||||
$jessie_or_newer = $::operatingsystemmajrelease ? {
|
if versioncmp($::operatingsystemmajrelease, 8) >= 0 {
|
||||||
5 => false,
|
|
||||||
6 => false,
|
|
||||||
7 => false,
|
|
||||||
default => true,
|
|
||||||
}
|
|
||||||
|
|
||||||
if $jessie_or_newer {
|
|
||||||
class { 'apt::reboot_required_notify::jessie': }
|
class { 'apt::reboot_required_notify::jessie': }
|
||||||
# Clean up systems that were upgraded from Wheezy or earlier:
|
# Clean up systems that were upgraded from Wheezy or earlier:
|
||||||
class { 'apt::reboot_required_notify::wheezy': ensure => absent }
|
class { 'apt::reboot_required_notify::wheezy': ensure => absent }
|
||||||
|
|
Loading…
Reference in a new issue