You could create a custom fact that returns the desired state of the
service, based on the existence of the file, and then use the value of that
fact in the service declaration. For example, like so:
The custom fact:
Facter.add(:state_of_the_service) do
setcode do
File.exists?(the-file) ? "r
I debugged the same error on OS X two weeks ago, so let me try to apply the
knowledge I gained to Opensuse.
The file puppet cannot find is
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/command_line.rb, which I was able
to fix by setting RUBYLIB (I'm Ruby newbie too, but in this case I suppose
'/