From: Silvio Rhatto Date: Wed, 31 May 2017 22:48:48 +0000 (-0300) Subject: Motd: support for additional message X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=98b93f6a1ee83010442b12d4f26b5471ab3bdf48;p=puppet-nodo.git Motd: support for additional message --- 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}", } }