diff options
author | intrigeri <intrigeri@boum.org> | 2016-06-29 17:56:40 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2016-06-29 18:02:16 +0000 |
commit | 70118955f6dae59a021880865408cf9367c3dc57 (patch) | |
tree | f6beb79a834e7c024bd1dfa796c413b36e227d65 | |
parent | 89a024678e39fec8a5c05371bcceaece605fbd88 (diff) |
apt::reboot_required_notify: get rid of temporary variable.
-rw-r--r-- | manifests/reboot_required_notify.pp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/manifests/reboot_required_notify.pp b/manifests/reboot_required_notify.pp index 82466d2..efd8aeb 100644 --- a/manifests/reboot_required_notify.pp +++ b/manifests/reboot_required_notify.pp @@ -1,13 +1,6 @@ class apt::reboot_required_notify { - $jessie_or_newer = $::operatingsystemmajrelease ? { - 5 => false, - 6 => false, - 7 => false, - default => true, - } - - if $jessie_or_newer { + if versioncmp($::operatingsystemmajrelease, 8) >= 0 { class { 'apt::reboot_required_notify::jessie': } # Clean up systems that were upgraded from Wheezy or earlier: class { 'apt::reboot_required_notify::wheezy': ensure => absent } |