module-apt/manifests/reboot_required_notify.pp
intrigeri 3630285006 reboot_required_notify: add initial support for Jessie and newer.
Note that reboot-notifier is only in stretch/sid at the moment,
so to use this one needs to configure APT pinning themselves
to make this package installable.
2015-08-31 20:03:40 +00:00

18 lines
467 B
Puppet

class apt::reboot_required_notify {
$jessie_or_newer = $::operatingsystemmajrelease ? {
5 => false,
6 => false,
7 => false,
default => true,
}
if $jessie_or_newer {
class { 'apt::reboot_required_notify::jessie': }
# Clean up systems that were upgraded from Wheezy or earlier:
class { 'apt::reboot_required_notify::wheezy': ensure => absent }
} else {
class { 'apt::reboot_required_notify::wheezy': }
}
}