Initial version of motd module.
This commit is contained in:
parent
3a40b11a62
commit
1f760fa70a
2 changed files with 29 additions and 0 deletions
0
motd/files/empty
Normal file
0
motd/files/empty
Normal file
29
motd/manifests/init.pp
Normal file
29
motd/manifests/init.pp
Normal 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",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue