aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/motd.pp
diff options
context:
space:
mode:
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}",
}