]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/motd/manifests/init.pp
Make it work with jessie, II
[dsa-puppet.git] / modules / motd / manifests / init.pp
index b200312722781191961dee53acee6b9e50ef7cc7..5f017c912950d404ed3a253911735d98ec347194 100644 (file)
@@ -7,8 +7,7 @@
 #   include motd
 #
 class motd {
-
-       if $::lsbdistcodename == 'wheezy' {
+       if $::lsbmajdistrelease == "testing" or $::lsbmajdistrelease >= 7 {
                $fname  = '/etc/update-motd.d/puppet-motd'
                $notify = undef
                $mode   = '0555'
@@ -17,8 +16,10 @@ class motd {
                        ensure => directory,
                        mode   => '0755'
                }
-
-       } elsif $::lsbdistcodename == 'squeeze' {
+               file { '/etc/motd.tail':
+                       ensure => absent,
+               }
+       } else {
                $fname  = '/etc/motd.tail'
                $notify = Exec['updatemotd']
                $mode   = '0444'