Initial version of motd module.

This commit is contained in:
Timo Mkinen 2013-01-24 17:33:13 +02:00
parent 3a40b11a62
commit 1f760fa70a
2 changed files with 29 additions and 0 deletions

0
motd/files/empty Normal file
View file

29
motd/manifests/init.pp Normal file
View file

@ -0,0 +1,29 @@
# Deploy motd file to server
#
class motd {
case $::operatingsystem {
"ubuntu": {
package { "update-motd":
ensure => absent,
}
}
}
file { "/etc/motd":
ensure => present,
source => [
"puppet:///files/motd/motd.${::homename}",
"puppet:///files/motd/motd",
"puppet:///modules/motd/empty",
],
mode => "0644",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
}
}