Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-27 Thread Craig White
On Jun 25, 2011, at 7:51 AM, Nigel Kersten wrote: > On Fri, Jun 24, 2011 at 4:28 PM, Craig White wrote: > >> 1. I want to require => >> /etc/puppet/modules/custom/lib/facter/$SOME_CUSTOM_FACT is actually executed >> and the fact is established before a particular package is >> installed/conf

Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-25 Thread Nigel Kersten
On Sat, Jun 25, 2011 at 11:54 AM, Daniel Pittman wrote: > Regardless of that, if you can submit a bug report about the failure, > that would be excellent.  Facter *shouldn't* be that easy to break. ;) Ugh. I missed that there was an error in this case, and yes, we totally shouldn't gag on such

Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-25 Thread Daniel Pittman
On Sat, Jun 25, 2011 at 07:51, Nigel Kersten wrote: > On Fri, Jun 24, 2011 at 4:28 PM, Craig White wrote: […] >> 2. It seems that the custom/lib/facter directory is a bit squirrelly in that >> it gags on the automatic backup files created by emacs (FILENAME.rb~) and if >> I create a resource t

Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-25 Thread Nigel Kersten
On Fri, Jun 24, 2011 at 4:28 PM, Craig White wrote: > 1. I want to require => > /etc/puppet/modules/custom/lib/facter/$SOME_CUSTOM_FACT is actually executed > and the fact is established before a particular package is > installed/configured. I can't seem to find the proper syntax for requiring

Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-24 Thread Craig White
On Jun 24, 2011, at 3:40 PM, Denmat wrote: > Hi, > > What I do is a little different for zmanda. > > I have a fact that looks for a local release file that contains the version > number installed. If that file doesn't exist then it returns 0.0.0. > > The version file is created after the succ

Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-24 Thread Denmat
Hi, What I do is a little different for zmanda. I have a fact that looks for a local release file that contains the version number installed. If that file doesn't exist then it returns 0.0.0. The version file is created after the successful install. I thought the gem provider was anyway? Can'

[Puppet Users] Custom facts - chicken or the egg

2011-06-24 Thread Craig White
Perhaps my logic isn't that good here and I shouldn't be using a custom fact at all but what I am trying to do is ascertain which version of the passenger gem is actually installed because I need to reference it in various places in apache & nginx configuration (the specific location of the pass