aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/motd.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-06-05 19:06:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-06-05 19:06:51 -0300
commit8d8b27b581fb58b8d559d3c7c1e1397e578230c3 (patch)
tree627c970454600dc8a932b44fb1f76f785db53658 /manifests/subsystem/motd.pp
parente128c09e7432997b1cf4747ec5e0f4fab7985e8e (diff)
downloadpuppet-nodo-8d8b27b581fb58b8d559d3c7c1e1397e578230c3.tar.gz
puppet-nodo-8d8b27b581fb58b8d559d3c7c1e1397e578230c3.tar.bz2
Changes for puppet 4 compatibility
Diffstat (limited to 'manifests/subsystem/motd.pp')
-rw-r--r--manifests/subsystem/motd.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/subsystem/motd.pp b/manifests/subsystem/motd.pp
index ae59f9b..df671eb 100644
--- a/manifests/subsystem/motd.pp
+++ b/manifests/subsystem/motd.pp
@@ -5,11 +5,14 @@ class nodo::subsystem::motd(
if $message != '' {
$append = "${message}\n"
}
+ else {
+ $append = ''
+ }
file { "/etc/motd":
owner => "root",
group => "root",
- mode => 0644,
+ mode => '0644',
ensure => file,
content => "This is ${::fqdn} from the ${network_name}.\n${append}",
}