apt::reboot_required_notify: get rid of temporary variable.

This commit is contained in:
intrigeri 2016-06-29 17:56:40 +00:00
parent 89a024678e
commit 70118955f6

View file

@ -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 }