Hi all, I''ve just posted a 1.5.0 rc1 tarball: http://reductivelabs.com/downloads/facter/facter-1.5.0rc1.tgz (In case you''re wondering, the growth in size is because of the addition of rspec and mocha gems to the repo.) This will hopefully be released next week, so it would be great if people could test. This is as of a12d3d8bbf7ef6b8cb867237f3709f948b266373. -- If a dog jumps onto your lap it is because he is fond of you; but if a cat does the same thing it is because your lap is warmer. -- Alfred North Whitehead --------------------------------------------------------------------- Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199 --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
the facter --version output is still 1.3.8, may be you forget to change it. On May 23, 1:33 pm, Luke Kanies <l...@reductivelabs.com> wrote:> Hi all, > > I''ve just posted a 1.5.0 rc1 tarball: > > http://reductivelabs.com/downloads/facter/facter-1.5.0rc1.tgz > > (In case you''re wondering, the growth in size is because of the > addition of rspec and mocha gems to the repo.) > > This will hopefully be released next week, so it would be great if > people could test. This is as of > a12d3d8bbf7ef6b8cb867237f3709f948b266373. > > -- > If a dog jumps onto your lap it is because he is fond of you; but if a > cat does the same thing it is because your lap is warmer. > -- Alfred North Whitehead > --------------------------------------------------------------------- > Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 23, 2008, at 1:10 AM, huangmingyou wrote:> > the facter --version output is still 1.3.8, may be you forget to > change it.Hmm, I didn''t really think of that, I suppose I should have changed it. I''ll do so for the next rc. -- I don''t know the key to success, but the key to failure is trying to please everybody. -- Bill Cosby --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Was this version should handle the pluginsync problem? or is it a puppet problem? rm -rf /var/lib/puppet/lib/ puppetd -tv --pluginsync notice: Ignoring --listen on onetime run info: Retrieving facts info: Retrieving plugins notice: /File[/var/lib/puppet/lib/puppet]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/puppet]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/puppet/type]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/facter]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/facter/fact1.rb]/ensure: created notice: /File[/var/lib/puppet/lib/puppet/facter/fact2.rb]/ensure: created ... notice: Ignoring cache err: Could not retrieve catalog: Failed to parse template template.erb: Could not find value for ''factname'' at /etc/puppet/.../init.pp:16 on node nodename warning: Not using cache on failed catalog on second run, puppet loads the facts correctly. Thanks, Ohad On Fri, May 23, 2008 at 1:33 PM, Luke Kanies <luke@reductivelabs.com> wrote:> > Hi all, > > I''ve just posted a 1.5.0 rc1 tarball: > > http://reductivelabs.com/downloads/facter/facter-1.5.0rc1.tgz > > (In case you''re wondering, the growth in size is because of the > addition of rspec and mocha gems to the repo.) > > This will hopefully be released next week, so it would be great if > people could test. This is as of > a12d3d8bbf7ef6b8cb867237f3709f948b266373. > > -- > If a dog jumps onto your lap it is because he is fond of you; but if a > cat does the same thing it is because your lap is warmer. > -- Alfred North Whitehead > --------------------------------------------------------------------- > Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199 > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi> Was this version should handle the pluginsync problem? or is it a puppet > problem? > rm -rf /var/lib/puppet/lib/ > puppetd -tv --pluginsync > notice: Ignoring --listen on onetime run > info: Retrieving facts > info: Retrieving plugins > notice: /File[/var/lib/puppet/lib/puppet]/ensure: created > notice: /File[/var/lib/puppet/lib/puppet/puppet]/ensure: created > notice: /File[/var/lib/puppet/lib/puppet/puppet/type]/ensure: created > notice: /File[/var/lib/puppet/lib/puppet/facter]/ensure: created > notice: /File[/var/lib/puppet/lib/puppet/facter/fact1.rb]/ensure: created > notice: /File[/var/lib/puppet/lib/puppet/facter/fact2.rb]/ensure: created > ... > notice: Ignoring cache > err: Could not retrieve catalog: Failed to parse template template.erb: > Could not find value for ''factname'' at /etc/puppet/.../init.pp:16 on node > nodename > warning: Not using cache on failed catalog > > on second run, puppet loads the facts correctly.facter doesn''t now anything about pluginsync. It will get executed by puppet, which then parses the facter ouput, to get the facters into it and to the puppetmaster. as far as I understood. However your problem (which I personally also encounter) seems to be related to bug #1197 [1] which should be now fixed, but no version yet released with it. greets pete [1] http://reductivelabs.com/trac/puppet/ticket/1197 --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 23, 2008, at 3:25 AM, Peter Meier wrote:> > Hi > >> Was this version should handle the pluginsync problem? or is it a >> puppet >> problem? >> rm -rf /var/lib/puppet/lib/ >> puppetd -tv --pluginsync >> notice: Ignoring --listen on onetime run >> info: Retrieving facts >> info: Retrieving plugins >> notice: /File[/var/lib/puppet/lib/puppet]/ensure: created >> notice: /File[/var/lib/puppet/lib/puppet/puppet]/ensure: created >> notice: /File[/var/lib/puppet/lib/puppet/puppet/type]/ensure: created >> notice: /File[/var/lib/puppet/lib/puppet/facter]/ensure: created >> notice: /File[/var/lib/puppet/lib/puppet/facter/fact1.rb]/ensure: >> created >> notice: /File[/var/lib/puppet/lib/puppet/facter/fact2.rb]/ensure: >> created >> ... >> notice: Ignoring cache >> err: Could not retrieve catalog: Failed to parse template >> template.erb: >> Could not find value for ''factname'' at /etc/puppet/.../init.pp:16 >> on node >> nodename >> warning: Not using cache on failed catalog >> >> on second run, puppet loads the facts correctly. > > facter doesn''t now anything about pluginsync. It will get executed by > puppet, which then parses the facter ouput, to get the facters into it > and to the puppetmaster. as far as I understood. > > However your problem (which I personally also encounter) seems to be > related to bug #1197 [1] which should be now fixed, but no version yet > released with it.I''d told Ohad that this Facter release would fix that, and I''m kinda surprised it hasn''t. I''d consider this a bug, since one of the goals of this 1.5 release is to make this work. Does ''facter --puppet'' show this new fact''s value? -- It is odd, but on the infrequent occasions when I have been called upon in a formal place to play the bongo drums, the introducer never seems to find it necessary to mention that I also do theoretical physics. -- Richard Feynman --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hello... On Fri, 2008-05-23 at 00:33 -0500, Luke Kanies wrote:> Hi all, > > I''ve just posted a 1.5.0 rc1 tarball: > > http://reductivelabs.com/downloads/facter/facter-1.5.0rc1.tgz > > (In case you''re wondering, the growth in size is because of the > addition of rspec and mocha gems to the repo.) >(easy) feature request? facter has ipaddress , what about netmask and network/broadcast? e.g. case $network lax.net: nameservers = ip.local.to.lax sfo.net: nameservers = ip.local.to.sfo lhr.net: nameservers = ip.local.to.london> This will hopefully be released next week, so it would be great if > people could test. This is as of > a12d3d8bbf7ef6b8cb867237f3709f948b266373. >-- Christopher McCrory "The guy that keeps the servers running" To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Christopher McCrory wrote:> Hello... > > On Fri, 2008-05-23 at 00:33 -0500, Luke Kanies wrote: >> Hi all, >> >> I''ve just posted a 1.5.0 rc1 tarball: >> >> http://reductivelabs.com/downloads/facter/facter-1.5.0rc1.tgz >> >> (In case you''re wondering, the growth in size is because of the >> addition of rspec and mocha gems to the repo.) >> > > (easy) feature request? > > facter has ipaddress , what about netmask and network/broadcast? >Ah - they are already there...? Results from my facter (truncated): facterversion => 1.5.0 interfaces => eth0,peth0,virbr0 ipaddress => 10.0.0.15 ipaddress_eth0 => 10.0.0.15 ipaddress_virbr0 => 192.168.122.1 macaddress => 00:13:8F:D2:CA:A6 macaddress_eth0 => 00:13:8F:D2:CA:A6 macaddress_peth0 => 00:13:8F:D2:CA:A6 macaddress_virbr0 => 00:00:00:00:00:00 netmask => 255.255.255.0 netmask_eth0 => 255.255.255.0 netmask_virbr0 => 255.255.255.0 So macaddress/netmask are for the primary interface for backwards compatability and the other new facts are suffixed with the name of the relevant interface. Regards James Turnbull -- James Turnbull (james@lovedthanlost.net) Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/)
Hi, facter -p does not load custom puppet facts.... hmm... how should I debug it? Thanks, Ohad On Fri, May 23, 2008 at 10:52 PM, Luke Kanies <luke@madstop.com> wrote:> > On May 23, 2008, at 3:25 AM, Peter Meier wrote: > > > > > Hi > > > >> Was this version should handle the pluginsync problem? or is it a > >> puppet > >> problem? > >> rm -rf /var/lib/puppet/lib/ > >> puppetd -tv --pluginsync > >> notice: Ignoring --listen on onetime run > >> info: Retrieving facts > >> info: Retrieving plugins > >> notice: /File[/var/lib/puppet/lib/puppet]/ensure: created > >> notice: /File[/var/lib/puppet/lib/puppet/puppet]/ensure: created > >> notice: /File[/var/lib/puppet/lib/puppet/puppet/type]/ensure: created > >> notice: /File[/var/lib/puppet/lib/puppet/facter]/ensure: created > >> notice: /File[/var/lib/puppet/lib/puppet/facter/fact1.rb]/ensure: > >> created > >> notice: /File[/var/lib/puppet/lib/puppet/facter/fact2.rb]/ensure: > >> created > >> ... > >> notice: Ignoring cache > >> err: Could not retrieve catalog: Failed to parse template > >> template.erb: > >> Could not find value for ''factname'' at /etc/puppet/.../init.pp:16 > >> on node > >> nodename > >> warning: Not using cache on failed catalog > >> > >> on second run, puppet loads the facts correctly. > > > > facter doesn''t now anything about pluginsync. It will get executed by > > puppet, which then parses the facter ouput, to get the facters into it > > and to the puppetmaster. as far as I understood. > > > > However your problem (which I personally also encounter) seems to be > > related to bug #1197 [1] which should be now fixed, but no version yet > > released with it. > > > I''d told Ohad that this Facter release would fix that, and I''m kinda > surprised it hasn''t. > > I''d consider this a bug, since one of the goals of this 1.5 release is > to make this work. > > Does ''facter --puppet'' show this new fact''s value? > > -- > It is odd, but on the infrequent occasions when I have been called upon > in a formal place to play the bongo drums, the introducer never seems > to find it necessary to mention that I also do theoretical physics. > -- Richard Feynman > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hello... ----- "James Turnbull" <james@lovedthanlost.net> wrote: | Christopher McCrory wrote: | > Hello... | > | > On Fri, 2008-05-23 at 00:33 -0500, Luke Kanies wrote: | >> Hi all, | >> | >> I''ve just posted a 1.5.0 rc1 tarball: | >> | >> http://reductivelabs.com/downloads/facter/facter-1.5.0rc1.tgz | >> | >> (In case you''re wondering, the growth in size is because of the | >> addition of rspec and mocha gems to the repo.) | >> | > | > (easy) feature request? | > | > facter has ipaddress , what about netmask and network/broadcast? | > | | Ah - they are already there...? Results from my facter (truncated): | | facterversion => 1.5.0 | interfaces => eth0,peth0,virbr0 | ipaddress => 10.0.0.15 | ipaddress_eth0 => 10.0.0.15 | ipaddress_virbr0 => 192.168.122.1 | macaddress => 00:13:8F:D2:CA:A6 | macaddress_eth0 => 00:13:8F:D2:CA:A6 | macaddress_peth0 => 00:13:8F:D2:CA:A6 | macaddress_virbr0 => 00:00:00:00:00:00 | netmask => 255.255.255.0 | netmask_eth0 => 255.255.255.0 | netmask_virbr0 => 255.255.255.0 | | So macaddress/netmask are for the primary interface for backwards | compatability and the other new facts are suffixed with the name of | the | relevant interface. | Ah. the netmask is there, but not the broadcast address. It seems fairly easy since is the also listed in the ifconfig output. network would be more difficult as facter would have to do some bit math. yes? no? maybe? | Regards | | James Turnbull | | -- | James Turnbull (james@lovedthanlost.net) | | Author of: | * Pulling Strings with Puppet | (http://www.amazon.com/gp/product/1590599780/) | * Pro Nagios 2.0 | (http://www.amazon.com/gp/product/1590596099/) | * Hardening Linux | (http://www.amazon.com/gp/product/1590594444/) -- Christopher McCrory "The guy that keeps the servers running" To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 27, 2008, at 11:41 AM, Christopher McCrory wrote:> | So macaddress/netmask are for the primary interface for backwards > | compatability and the other new facts are suffixed with the name of > | the > | relevant interface. > | > > Ah. the netmask is there, but not the broadcast address. It seems > fairly easy since is the also listed in the ifconfig output. > network would be more difficult as facter would have to do some bit > math. > > yes? no? maybe?I''m not opposed to it being added, but you''ll probably need to do the patch yourself. -- It is odd, but on the infrequent occasions when I have been called upon in a formal place to play the bongo drums, the introducer never seems to find it necessary to mention that I also do theoretical physics. -- Richard Feynman --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 27, 2:10 pm, Luke Kanies <l...@madstop.com> wrote:> On May 27, 2008, at 11:41 AM, Christopher McCrory wrote:\> > Ah. the netmask is there, but not the broadcast address. It seems> > fairly easy since is the also listed in the ifconfig output. > > network would be more difficult as facter would have to do some bit > > math. > I''m not opposed to it being added, but you''ll probably need to do the > patch yourself.I already wrote a patch to do network and broadcast, but it uses ioctl()''s and it''s for the older facter. If there''s no opposition to using ioctl()''s instead of screen scraping ifconfig (for platforms that support it) I''ll see about patching it up for the newer facter release. Cheers, Chris --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 cmoates@gmail.com wrote: | | | On May 27, 2:10 pm, Luke Kanies <l...@madstop.com> wrote: |> On May 27, 2008, at 11:41 AM, Christopher McCrory wrote: | \> > Ah. the netmask is there, but not the broadcast address. It | seems |>> fairly easy since is the also listed in the ifconfig output. |>> network would be more difficult as facter would have to do some bit |>> math. |> I''m not opposed to it being added, but you''ll probably need to do the |> patch yourself. | | I already wrote a patch to do network and broadcast, but it uses | ioctl()''s and it''s for the older facter. If there''s no opposition to | using ioctl()''s instead of screen scraping ifconfig (for platforms | that support it) I''ll see about patching it up for the newer facter | release. | No issue from me assuming sufficient platforms are covered. I''d prefer coverage of related facts across platforms to be relatively consistent, i.e. you get netmask on BSD you should also get macaddress, etc. Regards James - -- James Turnbull (james@lovedthanlost.net) Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIPMpv9hTGvAxC30ARAgjXAJ9i97O22QhEUeWUxZ2UWq7JKTt9FwCgyy6b ehUu6XPjx2ptqvwqG7gKpfg=j2QC -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---