]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 b6f884d328741e5b83b556b9b90926a86dbef10c..f2642306eb687f3c87522890fda79a41ff90126a 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 f8726866f0b2a599aa6e1ce9c96bfcb5e3e49591..9fedde753d21a0744284c15b70eced1eb07e0163 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
         }
 }