# include motd
#
class motd {
-
- if $::lsbdistcodename == 'wheezy' {
+ if $::lsbmajdistrelease >= 7 {
$fname = '/etc/update-motd.d/puppet-motd'
$notify = undef
$mode = '0555'
ensure => directory,
mode => '0755'
}
-
- } elsif $::lsbdistcodename == 'squeeze' {
+ file { '/etc/motd.tail':
+ ensure => absent,
+ }
+ } else {
$fname = '/etc/motd.tail'
$notify = Exec['updatemotd']
$mode = '0444'
-<% if @lsbdistcodename == 'wheezy' -%>
+<% if @lsbmajdistrelease >= '7' -%>
#!/bin/bash
cat <<EOD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-<% if @lsbdistcodename == 'wheezy' -%>
+<% if @lsbmajdistrelease >= '7' -%>
EOD
<% end -%>
<%