# include motd
#
class motd {
- file { '/etc/update-motd.d':
- ensure => directory,
- mode => '0755'
- }
file { '/etc/motd.tail':
ensure => absent,
}
ensure => link,
target => '/var/run/motd'
}
+ file { '/etc/update-motd.d':
+ ensure => directory,
+ mode => '0755'
+ }
+ file { '/etc/update-motd.d/puppet-motd':
+ notify => undef,
+ mode => '0555',
+ content => template('motd/motd.erb')
+ }
} else {
+ file { '/etc/update-motd.d/puppet-motd':
+ ensure => absent,
+ }
file { '/etc/motd':
- ensure => link,
- target => '/run/motd.dynamic'
+ notify => undef,
+ content => template('motd/motd.erb')
}
}
-
- file { '/etc/update-motd.d/puppet-motd':
- notify => undef,
- mode => '0555',
- content => template('motd/motd.erb')
- }
}
+<%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%>
#!/bin/bash
cat <<EOD
+<%- end -%>
This device is for authorized users only. All traffic on this device
is monitored and will be used as evidence for prosecutions. By using
-%>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+<%- if scope.call_function('versioncmp', [@lsbmajdistrelease, '8']) <= 0 -%>
EOD
+<%- end -%>
<%
# vim:set et:
# vim:set sts=2 ts=2: