Vincent Louviaux
2008-Aug-29 12:14 UTC
[Puppet Users] external nodes : always default node ?
Hello I am trying to use external nodes to defined classes The script run well : # /usr/local/bin/puppet_node_classifier el0036.bc --- classes: - sudo I see that the puppetmasterd use well the external script because if I change the classes , it give some error : example : Aug 29 13:55:38 el0036 puppetmasterd[29365]: Expiring the node cache of el0036.bc Aug 29 13:55:38 el0036 puppetmasterd[29365]: Not using expired node for el0036.bc from cache; expired at Fri Aug 29 13:54:38 +0200 2008 Aug 29 13:55:38 el0036 puppetmasterd[29365]: Caching node for el0036.bc Aug 29 13:55:38 el0036 puppetmasterd[29365]: Could not find class brol for el0036.bc Aug 29 13:55:38 el0036 puppetmasterd[29365]: Compiled catalog for el0036.bc in 0.01 seconds But it s always the default node who is applied, why ? # puppetd -tv info: Caching catalog at /var/lib/puppet/localconfig.yaml notice: Starting catalog run notice: //Node[*default*]/base/Exec[]/returns: executed successfully notice: Finished catalog run in 0.13 seconds --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
after many tests, it seem''s that external node script is well evaluated but it'' only the plain config who is applied a bug ? On 29 août, 14:14, "Vincent Louviaux" <vinc...@louviaux.com> wrote:> Hello > > I am trying to use external nodes to defined classes > > The script run well : > # /usr/local/bin/puppet_node_classifier el0036.bc > --- > classes: > - sudo > > I see that the puppetmasterd use well the external script because if I > change the classes , it give some error : > > example : > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Expiring the node cache of > el0036.bc > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Not using expired node for > el0036.bc from cache; expired at Fri Aug 29 13:54:38 +0200 2008 > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Caching node for el0036.bc > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Could not find class brol for > el0036.bc > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Compiled catalog for el0036.bc > in 0.01 seconds > > But it s always the default node who is applied, why ? > > # puppetd -tv > info: Caching catalog at /var/lib/puppet/localconfig.yaml > notice: Starting catalog run > notice: //Node[*default*]/base/Exec[]/returns: executed successfully > notice: Finished catalog run in 0.13 seconds--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
When I removed all nodes definitions from the sites.pp, it''s working Vincent On 29 août, 14:14, "Vincent Louviaux" <vinc...@louviaux.com> wrote:> Hello > > I am trying to use external nodes to defined classes > > The script run well : > # /usr/local/bin/puppet_node_classifier el0036.bc > --- > classes: > - sudo > > I see that the puppetmasterd use well the external script because if I > change the classes , it give some error : > > example : > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Expiring the node cache of > el0036.bc > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Not using expired node for > el0036.bc from cache; expired at Fri Aug 29 13:54:38 +0200 2008 > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Caching node for el0036.bc > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Could not find class brol for > el0036.bc > Aug 29 13:55:38 el0036 puppetmasterd[29365]: Compiled catalog for el0036.bc > in 0.01 seconds > > But it s always the default node who is applied, why ? > > # puppetd -tv > info: Caching catalog at /var/lib/puppet/localconfig.yaml > notice: Starting catalog run > notice: //Node[*default*]/base/Exec[]/returns: executed successfully > notice: Finished catalog run in 0.13 seconds--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I dont think you can have both external node and node definition at the same time.. Ohad On 9/1/08, Vincent <vincent@louviaux.com> wrote:> > after many tests, it seem's that external node script is well > evaluated but it' only the plain config who is applied > > a bug ? > > > > On 29 août, 14:14, "Vincent Louviaux" <vinc...@louviaux.com> wrote: >> Hello >> >> I am trying to use external nodes to defined classes >> >> The script run well : >> # /usr/local/bin/puppet_node_classifier el0036.bc >> --- >> classes: >> - sudo >> >> I see that the puppetmasterd use well the external script because if I >> change the classes , it give some error : >> >> example : >> Aug 29 13:55:38 el0036 puppetmasterd[29365]: Expiring the node cache of >> el0036.bc >> Aug 29 13:55:38 el0036 puppetmasterd[29365]: Not using expired node for >> el0036.bc from cache; expired at Fri Aug 29 13:54:38 +0200 2008 >> Aug 29 13:55:38 el0036 puppetmasterd[29365]: Caching node for el0036.bc >> Aug 29 13:55:38 el0036 puppetmasterd[29365]: Could not find class brol for >> el0036.bc >> Aug 29 13:55:38 el0036 puppetmasterd[29365]: Compiled catalog for >> el0036.bc >> in 0.01 seconds >> >> But it s always the default node who is applied, why ? >> >> # puppetd -tv >> info: Caching catalog at /var/lib/puppet/localconfig.yaml >> notice: Starting catalog run >> notice: //Node[*default*]/base/Exec[]/returns: executed successfully >> notice: Finished catalog run in 0.13 seconds > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-Sep-01 12:17 UTC
[Puppet Users] Re: external nodes : always default node ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ohad Levy wrote:> I dont think you can have both external node and node definition at > the same time.. > Ohad >You can have both internal nodes and external nodes. You can''t have external nodes and LDAP nodes together. Regards James Turnbull - -- 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 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIu91c9hTGvAxC30ARAj0XAJ9QKtqiYMoTzSn2Xfi42Xmekaz3tgCfUbSs 3SDA6VPWUIPV1bth/O2JV54=Z9V1 -----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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2008-Sep-01 12:21 UTC
[Puppet Users] Re: external nodes : always default node ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Vincent wrote:> When I removed all nodes definitions from the sites.pp, it''s working > > VincentWhat version is this and have you read http://reductivelabs.com/trac/puppet/wiki/ExternalNodes. Regards James Turnbull - -- 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 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIu95n9hTGvAxC30ARAu9HAJ9QuZe5FpFvj4ofVC5W1HJjgqjwswCglp4E 1RtUlmKvZMcllIBmTBcyQHE=fdnG -----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 -~----------~----~----~----~------~----~------~--~---
Vincent Louviaux
2008-Sep-01 13:09 UTC
[Puppet Users] Re: external nodes : always default node ?
the last one # puppetmasterd --version 0.24.5 But it s not a real problem for me if i need to defined only in the external script Vincent On Mon, Sep 1, 2008 at 2:21 PM, James Turnbull <james@lovedthanlost.net>wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Vincent wrote: > > When I removed all nodes definitions from the sites.pp, it''s working > > > > Vincent > > What version is this and have you read > http://reductivelabs.com/trac/puppet/wiki/ExternalNodes. > > Regards > > James Turnbull > > - -- > 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 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIu95n9hTGvAxC30ARAu9HAJ9QuZe5FpFvj4ofVC5W1HJjgqjwswCglp4E > 1RtUlmKvZMcllIBmTBcyQHE> =fdnG > -----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 -~----------~----~----~----~------~----~------~--~---