Add a default path to the Exec object and remove absolute paths in motd
authorStephen Gran <steve@lobefin.net>
Sat, 25 Apr 2009 16:36:18 +0000 (17:36 +0100)
committerStephen Gran <steve@lobefin.net>
Sat, 25 Apr 2009 16:36:18 +0000 (17:36 +0100)
module
Signed-off-by: Stephen Gran <steve@lobefin.net>
manifests/site.pp
modules/motd/manifests/init.pp

index b6f884d..f264230 100644 (file)
@@ -9,6 +9,10 @@ File {
     ensure  => file,
 }
 
+Exec {
+    path => "/usr/bin:/usr/sbin:/bin:/sbin"
+}
+
 node default {
     include munin-node
     include sudo
index f872686..9fedde7 100644 (file)
@@ -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
         }
 }