[Puppet Users] Re: How to make service start depend on a file existing

2015-07-08 Thread Gerard Kok
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

Re: [Puppet Users] `require': cannot load such file -- puppet/util/command_line (LoadError)

2012-08-05 Thread Gerard Kok
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 '/