summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-06-29 17:56:40 +0000
committerintrigeri <intrigeri@boum.org>2016-06-29 18:02:16 +0000
commit70118955f6dae59a021880865408cf9367c3dc57 (patch)
treef6beb79a834e7c024bd1dfa796c413b36e227d65 /manifests
parent89a024678e39fec8a5c05371bcceaece605fbd88 (diff)
apt::reboot_required_notify: get rid of temporary variable.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/reboot_required_notify.pp9
1 files changed, 1 insertions, 8 deletions
diff --git a/manifests/reboot_required_notify.pp b/manifests/reboot_required_notify.pp
index 82466d2..efd8aeb 100644
--- a/manifests/reboot_required_notify.pp
+++ b/manifests/reboot_required_notify.pp
@@ -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 }