From 1bfbd12a4e812a98a12ffe780e45da4aa43a65be Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 25 Apr 2009 17:36:18 +0100 Subject: [PATCH] Add a default path to the Exec object and remove absolute paths in motd module Signed-off-by: Stephen Gran --- manifests/site.pp | 4 ++++ modules/motd/manifests/init.pp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/site.pp b/manifests/site.pp index b6f884d32..f2642306e 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -9,6 +9,10 @@ File { ensure => file, } +Exec { + path => "/usr/bin:/usr/sbin:/bin:/sbin" +} + node default { include munin-node include sudo diff --git a/modules/motd/manifests/init.pp b/modules/motd/manifests/init.pp index f8726866f..9fedde753 100644 --- a/modules/motd/manifests/init.pp +++ b/modules/motd/manifests/init.pp @@ -4,7 +4,7 @@ class motd { content => template("motd.erb") ; } exec { "updatemotd": - command => "/bin/uname -snrvm > /var/run/motd && /bin/cat /etc/motd.tail >> /var/run/motd", + command => "uname -snrvm > /var/run/motd && cat /etc/motd.tail >> /var/run/motd", refreshonly => true } } -- 2.20.1