Hello Everyone,
I have a case where I'm depending on custom facter rules in my puppet
config, and those custom facter rules come from a ruby library that
puppet installs. I need to know how I can ensure that library is
installed by puppet before classes that depend on those facts are
evaluated..
To illustrate...
class facter_rules {
file {
"/usr/lib/ruby/site_ruby/1.8/facter/custom.rb":
source => "puppet://$server/dist/custom.rb";
}
}
class sitestuff {
include facter_rules
case "$customfact" {
"value-a": {
# do stuff
}
"value-b": {
# do other stuff
}
}
}
...
Using this, often class sitestuff gets evaluated before my facter_rules
file copy is done - which results in puppet exiting without putting
custom.rb in place. I'm using puppet vers. 0.24.4.
I've considered using 'before =>' in my facter_rules file definition,
but class 'sitestuff' may be defined or not defined depending on what
services/classes are defined on the host.
Any ideas on how I can get around this chicken and egg problem?
Cheers,
-- Greg
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.