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 successful install.
> 
> I thought the gem provider was  anyway? Can't you pass the version in the 
> package declaration?
-----
getting the version isn't exactly the problem and yes, the version is in the 
package installation set - which I plan to revisit later because it seems that 
when it comes to gem packages, 'ensure => latest' didn't seem to work but I 
didn't want to waste time on that.

My issues seem to be...

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 that 
fact first - before the attempted installation.

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 that depends upon a fact, the resource installation fails and 
the fact is never established when I was sort of expecting facter to run at the 
outset of any agent activity.

Craig

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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.

Reply via email to