diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-06-05 19:06:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-06-05 19:06:51 -0300 |
commit | 8d8b27b581fb58b8d559d3c7c1e1397e578230c3 (patch) | |
tree | 627c970454600dc8a932b44fb1f76f785db53658 /manifests/subsystem/motd.pp | |
parent | e128c09e7432997b1cf4747ec5e0f4fab7985e8e (diff) | |
download | puppet-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.pp | 5 |
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}", } |