I''m working with a pretty simple config at the moment to track down
some
issues I''m seeing with custom facts and plugins.
I have factsync = true (default locations)
and I have a simple fact in /var/lib/puppet/facts/
(actually it''s David''s netmask plugin)
my pp file I''m testing with contains only:
notice "netmask: ${netmask}"
puppet -v test.pp give sme...
info: Loading fact netmask
info: Retrieving facts
err: /fact_collector/File[/var/lib/puppet/client-facts]: Failed to generate
additional resources during transaction: Fileserver module
''facts'' not
mounted
err: /fact_collector/File[/var/lib/puppet/client-facts]/source: Could not
describe /facts: Fileserver module ''facts'' not mounted
info: Loading fact netmask
notice: main[top]: netmask: 255.255.255.0
----
So the fact is being loaded but it complains about not being able to sync it
via the fileserver.
My fileserver.conf has nothing in it at this time.
When I add the following to fileserver.conf:
[facts]
path /var/lib/puppet/facts/
allow *
I get the following:
info: Loading fact netmask
info: Retrieving facts
err: /fact_collector/File[/var/lib/puppet/client-facts/netmask.rb]: Failed
to generate additional resources during transaction: Fileserver module
''factsnetmask'' not mounted
err: /fact_collector/File[/var/lib/puppet/client-facts/netmask.rb]/source:
Could not describe /factsnetmask.rb: Fileserver module
''factsnetmask'' not
mounted
info: Loading fact netmask
notice: main[top]: netmask: 255.255.255.0
----
Again the fact is loaded and seems to work, but syncing from the fileserver
is throwing errors.
Currently I''m using puppet standalone to test against itself so that
might
explain the fact (sic) that the fact is working, but not the fileserver
errors.
Where plugins come into this is trying to do basically the same thing:
plugins in /var/lib/puppet/plugins/{foo.rb, etc}
plugindest of /var/lib/puppet/lib/
either with or without a mount in fileserver.conf I get no love from
plugins. In fact the only way I''ve been able to get it to work is
with the
patches for plugins in modules.
anyone have any ideas?
C
--
stickm@gmail.com
-==< Stick >==-
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
On Fri, Nov 16, 2007 at 11:30:16PM -0500, Chris MacLeod wrote:> So the fact is being loaded but it complains about not being able to sync it > via the fileserver. > > My fileserver.conf has nothing in it at this time. > > When I add the following to fileserver.conf: > [facts] > path /var/lib/puppet/facts/ > allow *Knowing what version of Puppet you were running might be helpful, but I do have this strange recollection that trailing slashes in mount paths was/is verboten. Might try getting rid of that as step one.> I get the following: > > info: Loading fact netmask > info: Retrieving facts > err: /fact_collector/File[/var/lib/puppet/client-facts/netmask.rb]: Failed > to generate additional resources during transaction: Fileserver module > ''factsnetmask'' not mountedAnd I think that''s *why* they were verboten... - Matt -- [Mark] Shuttleworth is the Scrooge McDuck of Launchpad. -- CSWookie, in #trac
0.23.2 I had thought that there was a bug that ''required'' the trailing slashes... The error certainly seems to imply that a slash is missing somewhere... I''ll give it a while in a bit. C On 11/17/07, Matt Palmer <mpalmer@hezmatt.org> wrote:> > On Fri, Nov 16, 2007 at 11:30:16PM -0500, Chris MacLeod wrote: > > So the fact is being loaded but it complains about not being able to > sync it > > via the fileserver. > > > > My fileserver.conf has nothing in it at this time. > > > > When I add the following to fileserver.conf: > > [facts] > > path /var/lib/puppet/facts/ > > allow * > > Knowing what version of Puppet you were running might be helpful, but I do > have this strange recollection that trailing slashes in mount paths was/is > verboten. Might try getting rid of that as step one. > > > I get the following: > > > > info: Loading fact netmask > > info: Retrieving facts > > err: /fact_collector/File[/var/lib/puppet/client-facts/netmask.rb]: > Failed > > to generate additional resources during transaction: Fileserver module > > ''factsnetmask'' not mounted > > And I think that''s *why* they were verboten... > > - Matt > > -- > [Mark] Shuttleworth is the Scrooge McDuck of Launchpad. > -- CSWookie, in #trac > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- stickm@gmail.com -==< Stick >==- _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Sat, Nov 17, 2007 at 10:22:45AM -0500, Chris MacLeod wrote:> 0.23.2Stock, or from a package (and if so, which one?)> I had thought that there was a bug that ''required'' the trailing slashes...Nope. No trailing slashes here. - Matt -- Judging by this particular thread, many people in this group spent their school years taking illogical, pointless orders from morons and having their will to live systematically crushed. And people say school doesn''t prepare kids for the real world. -- Rayner, in the Monastery
On Nov 16, 2007, at 11:18 PM, Matt Palmer wrote:> > Knowing what version of Puppet you were running might be helpful, > but I do > have this strange recollection that trailing slashes in mount paths > was/is > verboten. Might try getting rid of that as step one.Chris and I discussed this on IRC; I remember the same problem, but I stupidly didn''t document it at the time (and I couldn''t actually track it down the first time I ran across it). Check your configuration, too -- make sure the factsource doesn''t have a slash in it or something like that. -- It''s not that I''m afraid to die. I just don''t want to be there when it happens. -- Woody Allen --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Seems that it wasn''t a matter of a missing trailing slash but the
presence
of trailing slashes causing the problem.
This is the config I have now that works:
--fileserver.conf---
[facts]
path /var/lib/puppet/facts
allow *
[plugins]
path /var/lib/puppet/plugins
allow *
--puppet.conf---
[main]
vardir = /var/lib/puppet
libdir = $vardir/lib
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
pluginsync = true
pluginsignore = .svn .git CVS
factsync = true
factsignore = .svn .git CVS
so no trailing slashes anywhere seems to be the trick.
Note, I did need to set libdir explicitly otherwise it put everything in
/var/puppet/lib (vs /var/lib/puppet/lib) which is contrary to what
--genconfig says (it says the default is $vardir/lib IIRC)
C
On 11/18/07, Luke Kanies <luke@madstop.com> wrote:>
> On Nov 16, 2007, at 11:18 PM, Matt Palmer wrote:
> >
> > Knowing what version of Puppet you were running might be helpful,
> > but I do
> > have this strange recollection that trailing slashes in mount paths
> > was/is
> > verboten. Might try getting rid of that as step one.
>
> Chris and I discussed this on IRC; I remember the same problem, but I
> stupidly didn''t document it at the time (and I couldn''t
actually
> track it down the first time I ran across it).
>
> Check your configuration, too -- make sure the factsource doesn''t
> have a slash in it or something like that.
>
> --
> It''s not that I''m afraid to die. I just don''t
want to be there when it
> happens. -- Woody Allen
> ---------------------------------------------------------------------
> Luke Kanies | http://reductivelabs.com | http://madstop.com
>
>
> _______________________________________________
> Puppet-users mailing list
> Puppet-users@madstop.com
> https://mail.madstop.com/mailman/listinfo/puppet-users
>
--
stickm@gmail.com
-==< Stick >==-
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
On Nov 20, 2007, at 1:05 PM, Chris MacLeod wrote:> Seems that it wasn''t a matter of a missing trailing slash but the > presence of trailing slashes causing the problem. > > This is the config I have now that works: > > --fileserver.conf--- > [facts] > path /var/lib/puppet/facts > allow * > > [plugins] > path /var/lib/puppet/plugins > allow * > > --puppet.conf--- > [main] > vardir = /var/lib/puppet > libdir = $vardir/lib > logdir = /var/log/puppet > rundir = /var/run/puppet > ssldir = $vardir/ssl > pluginsync = true > pluginsignore = .svn .git CVS > factsync = true > factsignore = .svn .git CVS > > so no trailing slashes anywhere seems to be the trick.Can you document this somewhere?> Note, I did need to set libdir explicitly otherwise it put > everything in /var/puppet/lib (vs /var/lib/puppet/lib) which is > contrary to what --genconfig says (it says the default is $vardir/ > lib IIRC)This is an ordering issue and is fixed in the current code (I''m *nearly* positive). -- Morgan''s Second Law: To a first approximation all appointments are canceled. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On 11/20/07, Luke Kanies <luke@madstop.com> wrote:> > On Nov 20, 2007, at 1:05 PM, Chris MacLeod wrote: > > > Seems that it wasn''t a matter of a missing trailing slash but the > > presence of trailing slashes causing the problem. > > > > This is the config I have now that works: > > > > --fileserver.conf--- > > [facts] > > path /var/lib/puppet/facts > > allow * > > > > [plugins] > > path /var/lib/puppet/plugins > > allow * > > > > --puppet.conf--- > > [main] > > vardir = /var/lib/puppet > > libdir = $vardir/lib > > logdir = /var/log/puppet > > rundir = /var/run/puppet > > ssldir = $vardir/ssl > > pluginsync = true > > pluginsignore = .svn .git CVS > > factsync = true > > factsignore = .svn .git CVS > > > > so no trailing slashes anywhere seems to be the trick. > > Can you document this somewhere?Sure, I''ll find some appropriate place for it.> Note, I did need to set libdir explicitly otherwise it put > > everything in /var/puppet/lib (vs /var/lib/puppet/lib) which is > > contrary to what --genconfig says (it says the default is $vardir/ > > lib IIRC) > > This is an ordering issue and is fixed in the current code (I''m > *nearly* positive). > > -- > Morgan''s Second Law: > To a first approximation all appointments are canceled. > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- stickm@gmail.com -==< Stick >==- _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users