aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schmitt <david@schmitt.edv-bus.at>2008-02-14 18:11:52 +0100
committerDavid Schmitt <david@schmitt.edv-bus.at>2008-02-14 18:11:52 +0100
commitffa7b203c024c7c9a90d00009eb40849990fc933 (patch)
treeadbbc2626530a07ad7e10e69aba4144dfc4780da
parent45088ca543055aeec018e6ec8870422dcd1dfcfd (diff)
downloadpuppet-common-ffa7b203c024c7c9a90d00009eb40849990fc933.tar.gz
puppet-common-ffa7b203c024c7c9a90d00009eb40849990fc933.tar.bz2
lsb_release: remove paths from exec, to be more flexible, hint from admin@immerda.ch
-rw-r--r--manifests/classes/lsb_release.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/classes/lsb_release.pp b/manifests/classes/lsb_release.pp
index 0cfebc7..8455a56 100644
--- a/manifests/classes/lsb_release.pp
+++ b/manifests/classes/lsb_release.pp
@@ -19,7 +19,7 @@ class assert_lsbdistcodename {
case $lsbdistcodename {
'': {
err("Please install lsb_release or set facter_lsbdistcodename in the environment of $fqdn")
- exec { "/bin/false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
+ exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
}
'n/a': {
case $operatingsystem {
@@ -30,11 +30,11 @@ class assert_lsbdistcodename {
err("lsb_release was unable to report your distcodename; please set facter_lsbdistcodename in the environment of $fqdn")
}
}
- exec { "/bin/false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
+ exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename }
}
default: {
- exec { "/bin/true # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => debug }
- exec { "/bin/true # require_lsbdistcodename": alias => require_lsbdistcodename, loglevel => debug }
+ exec { "true # assert_lsbdistcodename": alias => assert_lsbdistcodename }
+ exec { "true # require_lsbdistcodename": alias => require_lsbdistcodename }
}
}
@@ -42,5 +42,5 @@ class assert_lsbdistcodename {
# To fail the complete compilation, include this class
class require_lsbdistcodename inherits assert_lsbdistcodename {
- exec { "/bin/false # require_lsbdistcodename": require => Exec[require_lsbdistcodename], }
+ exec { "false # require_lsbdistcodename": require => Exec[require_lsbdistcodename], }
}