From ffa7b203c024c7c9a90d00009eb40849990fc933 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Thu, 14 Feb 2008 18:11:52 +0100 Subject: lsb_release: remove paths from exec, to be more flexible, hint from admin@immerda.ch --- manifests/classes/lsb_release.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'manifests/classes') 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], } } -- cgit v1.2.3