well i decided to change the route a little, I have decided to make
a .rb file for adding fact rather then the environment variable and
heres what am doing and still getting the same error:

1.  On the puppetmaster in your modules directory create a facts
module with
subdirectory files. In this add any of your custom .rb scripts

# ls /etc/puppet/modules/facts/files
day_of_week.rb
hardware_platform.rb    # = wiki example

2. On the puppetmaster in /etc/puppet/puppet.conf I added:-
    pluginsync = true
    factpath = $vardir/facts    #vardir = /var/lib/puppet

3. On the puppetmaster in /etc/puppet/fileserver.conf I added:-
[facts]
path /var/lib/puppet/facts

4. On the server I added the file  /etc/profile.d/facter.sh
containing
export FACTERLIB=/var/lib/puppet/facts

after this again when I connect the client to puppet server I get the
following error:

err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
resource: Could not retrieve information from source(s) puppet://puppet/plugins

Help guys!!!


On Aug 12, 8:32 am, newguy <aimanparv...@gmail.com> wrote:
> Yes fact exists as a environment variable only
> Any suggestions anyone???
> On Aug 12, 7:50 am, Guy Matz <gm...@matz.org> wrote:
>
>
>
>
>
>
>
> > Oh, wait . . .  that fact exists solely as an environment variable?  You
> > haven't put that code in a file for distribution?  Then please ignore my
> > previous response.  Sorry
>
> > On Fri, Aug 12, 2011 at 10:30 AM, newguy <aimanparv...@gmail.com> wrote:
> > > Guys
> > > I made a custom fact using export;(export FACTER_envt=`hostname -s|cut
> > > -c 1-2`;) on puppet master, and when I do facter envt it shows the
> > > desired result, now my problem is that am unable to distribute it to
> > > the client machines.
>
> > > I read up a little on adding custom facts and found out the pluginsyc
> > > would help me but it didnt, I have pluginsync=true on both
> > > puppetmaster and client but still when I do "sudo puppetd --test --
> > > pluginsync" on client it says the following:
>
> > > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of
> > > resource: Could not retrieve information from source(s)
> > > puppet://puppet/plugins
>
> > > On client /var/lib/puppet/lib has no directory
> > > On server /var/lib/puppet/lib has puppet and facter directories
>
> > > sudo puppetd --configprint factpath on client is  /var/lib/puppet/lib/
> > > facter and on server its the same.
>
> > > Please help.
>
> > > Thanks
>
> > > --
> > > 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.

-- 
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