3630285006
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.
18 lines
467 B
Puppet
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': }
|
|
}
|
|
|
|
}
|