Avoiding exec error

Trying to force path so puppet doesn't issue the following error:

  Could not create true # require_lsbdistcodename: 'true #
  require_lsbdistcodename' is both unqualifed and specified no search path
  at /etc/puppet/modules/common/manifests/classes/lsb_release.pp:40
This commit is contained in:
Silvio Rhatto 2009-07-16 15:08:49 -03:00
parent 6e9ef2d08e
commit 9e6cb5d208

View file

@ -33,11 +33,11 @@ class assert_lsbdistcodename {
err("lsb_release was unable to report your distcodename; please set facter_lsbdistcodename in the environment of $fqdn") err("lsb_release was unable to report your distcodename; please set facter_lsbdistcodename in the environment of $fqdn")
} }
} }
exec { "false # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => err } exec { "/bin/false # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => err }
} }
default: { default: {
exec { "true # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => debug } exec { "/bin/true # assert_lsbdistcodename": alias => assert_lsbdistcodename, loglevel => debug }
exec { "true # require_lsbdistcodename": alias => require_lsbdistcodename, loglevel => debug } exec { "/bin/true # require_lsbdistcodename": alias => require_lsbdistcodename, loglevel => debug }
} }
} }