Permalink
Browse files

Add path to exec commands

  • Loading branch information...
mbbx6spp committed Mar 16, 2012
1 parent d867608 commit d8cb96d42ae96e234c0abfc00a6a1f2a5b33edab
Showing with 9 additions and 6 deletions.
  1. +2 −1 manifests/init.pp
  2. +7 −5 manifests/key.pp
View
@@ -7,7 +7,7 @@
}
# apt support preferences.d since version >= 0.7.22
- case $lsbdistcodename {
+ case $lsbdistcodename {
/lucid|squeeze/ : {
file {"/etc/apt/preferences":
@@ -44,5 +44,6 @@
exec { "apt-get_update":
command => "apt-get update",
refreshonly => true,
+ path => ['/usr/sbin', '/usr/bin'],
}
}
View
@@ -18,15 +18,17 @@
exec { "import gpg key ${name}":
command => "${thekey} | apt-key add -",
- unless => "apt-key list | grep -Fqe '${name}'",
- before => Exec["apt-get_update"],
- notify => Exec["apt-get_update"],
+ unless => "apt-key list | grep -Fqe '${name}'",
+ before => Exec["apt-get_update"],
+ notify => Exec["apt-get_update"],
+ path => ['/usr/sbin', '/usr/bin'],
}
}
-
+
absent: {
exec {"apt-key del ${name}":
- onlyif => "apt-key list | grep -Fqe '${name}'",
+ onlyif => "apt-key list | grep -Fqe '${name}'",
+ path => ['/usr/sbin', '/usr/bin'],
}
}

0 comments on commit d8cb96d

Please sign in to comment.