diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-05-31 19:48:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-05-31 19:48:48 -0300 |
commit | 98b93f6a1ee83010442b12d4f26b5471ab3bdf48 (patch) | |
tree | 14f68b7ed4772980ec0544b95e32dc6dd4d8b0dc /manifests/subsystem | |
parent | ca82dc254959c0f1b8f8c3105093cfebf3248ee2 (diff) | |
download | puppet-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.pp | 7 |
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}", } } |