On Sep 10, 1:26 pm, Jeff <[EMAIL PROTECTED]> wrote:
> On Sep 10, 11:48 am, Dean Wilson <[EMAIL PROTECTED]> wrote:
>
> > On Wed, Sep 10, 2008 at 05:27:58AM -0700, Jeff wrote:
> > > I was hoping to get some guidance on my first fact. I'd like to create
> > > a global configuration file that contains default values that I can
> > > reference in multiple classes.
>
> > Does this help?
>
> >http://www.unixdaemon.net/facter_scripts/facterfiler.rb
>
> Dean,
>
> I suppose it kind of helps. This script fails in the same way that
> mine does. The variable 'value' in the setcode block has no value. If
> I check it with a print statement prior to the setcode block, it
> prints a value. What version of facter are you running?
>
This does not correspond with the book but I got to work. If I have a
key named "haha" and I try to run "facter haha", I get nothing back.
However, if I just run "facter" then I get all the information
including the key value pairs in my config file.
This leads me to my next problem. I'm not syncing facts. Here's the
error:
debug: /puppetconfig/puppet/File[/var/puppet/facts]: Autorequiring
File[/var/puppet]
info: Retrieving facts
err: /fact_collector/File[/var/puppet/facts]: Failed to generate
additional resources during transaction: Cannot access mount[facts]
err: /fact_collector/File[/var/puppet/facts]/source: Could not
describe /facts: Cannot access mount[facts]
info: /fact_collector/File[/var/puppet/facts]/source: No specified
sources exist
debug: /fact_collector/File[/var/puppet/facts]: Changing checksum
debug: /fact_collector/File[/var/puppet/facts]: 1 change(s)
debug: /fact_collector/File[/var/puppet/facts]/checksum: setting time
(currently {time}Wed Sep 10 14:28:03 -0400 2008)
debug: /fact_collector/File[/var/puppet/facts]/checksum: Replacing /
var/puppet/facts checksum {time}Wed Sep 10 14:27:55 -0400 2008 with
{time}Wed Sep 10 14:28:03 -0400 2008
notice: /fact_collector/File[/var/puppet/facts]/checksum: checksum
changed '{time}Wed Sep 10 14:27:55 -0400 2008' to '{time}Wed Sep 10
14:28:03 -0400 2008'
Any thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---