apt::reboot_required_notify::jessie: explicitly check that $apt::use_backports is true when running Jessie.

Otherwise, it would fail anyway when trying to install reboot-notifier,
but in a way less user-friendly.

Thanks to lavamind for the suggestion!
This commit is contained in:
intrigeri 2016-06-29 17:54:16 +00:00
parent 2ab9739d5a
commit 89a024678e

View file

@ -1,5 +1,9 @@
class apt::reboot_required_notify::jessie ($ensure = present) {
if $::operatingsystemmajrelease == 8 and ! $::apt::use_backports {
fail('apt::reboot_required_notify requires $apt::use_backports on Jessie')
}
$pinning_ensure = $::operatingsystemmajrelease ? {
8 => present,
default => absent,