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:
parent
2ab9739d5a
commit
89a024678e
1 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
class apt::reboot_required_notify::jessie ($ensure = present) {
|
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 ? {
|
$pinning_ensure = $::operatingsystemmajrelease ? {
|
||||||
8 => present,
|
8 => present,
|
||||||
default => absent,
|
default => absent,
|
||||||
|
|
Loading…
Reference in a new issue