From 2d587cc2b86996ebe12eb76b1463512374ce9c7d Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 26 Apr 2009 16:07:34 +0100 Subject: [PATCH] Another try Signed-off-by: Stephen Gran --- manifests/site.pp | 2 +- modules/motd/manifests/new.pp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 modules/motd/manifests/new.pp diff --git a/manifests/site.pp b/manifests/site.pp index 0af9a890..5fb46eaf 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -36,7 +36,7 @@ node default { case $hostname { spohr: { include nagios::server - include motd-new + include motd::new } default: { include nagios::client diff --git a/modules/motd/manifests/new.pp b/modules/motd/manifests/new.pp new file mode 100644 index 00000000..45d06f7e --- /dev/null +++ b/modules/motd/manifests/new.pp @@ -0,0 +1,6 @@ +class motdnew inherits motd { + file { "/etc/motd.tail": + notify => Exec["updatemotd"], + content => template("motd-new.erb") ; + } +} -- 2.39.2