aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-31 19:48:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-31 19:48:48 -0300
commit98b93f6a1ee83010442b12d4f26b5471ab3bdf48 (patch)
tree14f68b7ed4772980ec0544b95e32dc6dd4d8b0dc /manifests/subsystem
parentca82dc254959c0f1b8f8c3105093cfebf3248ee2 (diff)
downloadpuppet-nodo-98b93f6a1ee83010442b12d4f26b5471ab3bdf48.tar.gz
puppet-nodo-98b93f6a1ee83010442b12d4f26b5471ab3bdf48.tar.bz2
Motd: support for additional message
Diffstat (limited to 'manifests/subsystem')
-rw-r--r--manifests/subsystem/motd.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/subsystem/motd.pp b/manifests/subsystem/motd.pp
index 0ed8cbe..ae59f9b 100644
--- a/manifests/subsystem/motd.pp
+++ b/manifests/subsystem/motd.pp
@@ -1,11 +1,16 @@
class nodo::subsystem::motd(
+ $message = hiera('nodo::subsystem::motd::message', ''),
$network_name = hiera('nodo::subsystem::motd::network_name', 'Nodo')
) {
+ if $message != '' {
+ $append = "${message}\n"
+ }
+
file { "/etc/motd":
owner => "root",
group => "root",
mode => 0644,
ensure => file,
- content => "This is ${::fqdn} from the ${network_name}.\n",
+ content => "This is ${::fqdn} from the ${network_name}.\n${append}",
}
}