Hello, Is it possible to configure an ENC to provide class definition to a number of nodes at the same time where a few other nodes are controlled in the site.pp by node ''FQDN'' {blah} for the same puppetmaster ? I am wondering once parameters are set for the master to look for an ENC based definitions, will it conflict with the site.pp node definitions ? For example these two basic parameters for ENC : node_terminus = exec external_nodes = /usr/local/bin/enclassifier Thanks for any suggestion. ------ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Martin Alfke
2013-Mar-26 15:02 UTC
Re: [Puppet Users] Running ENC alongside site.pp (node defn)
Hi. On 26.03.2013, at 15:44, iamauser wrote:> Hello, > > Is it possible to configure an ENC to provide class definition to a number of nodes at the same time where a few other nodes are controlled in the site.pp by node ''FQDN'' {blah} for the same puppetmaster ?ENC and site.pp do not replace each other. You can use them in parallel at the same time. Please note that you even may have one node in both (ENC and site.pp). Puppet will merge all classes and parameters.> > I am wondering once parameters are set for the master to look for an ENC based definitions, will it conflict with the site.pp node definitions ? > For example these two basic parameters for ENC : > > node_terminus = exec > external_nodes = /usr/local/bin/enclassifier > > Thanks for any suggestion. > > ------ > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Peter Brown
2013-Mar-26 23:37 UTC
Re: [Puppet Users] Running ENC alongside site.pp (node defn)
On 27 March 2013 01:02, Martin Alfke <tuxmea@gmail.com> wrote:> Hi. > On 26.03.2013, at 15:44, iamauser wrote: > > Hello, > > Is it possible to configure an ENC to provide class definition to a number > of nodes at the same time where a few other nodes are controlled in the > site.pp by node ''FQDN'' {blah} for the same puppetmaster ? > > > ENC and site.pp do not replace each other. > You can use them in parallel at the same time. > > Please note that you even may have one node in both (ENC and site.pp). > Puppet will merge all classes and parameters. >It also seems that if you put some nodes in site.pp et al you need a definition for all of them. You can get around having to put an entry in for all of your nodes by putting in an empty default node.> > > I am wondering once parameters are set for the master to look for an ENC > based definitions, will it conflict with the site.pp node definitions ? > For example these two basic parameters for ENC : > > node_terminus = exec > external_nodes = /usr/local/bin/enclassifier > > Thanks for any suggestion. > > ------ > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
iamauser
2013-Mar-27 01:32 UTC
Re: [Puppet Users] Running ENC alongside site.pp (node defn)
Thanks Pete and Martin. Follow up question. Let''s assume I have 3 nodes (A,B,C), and all of them have some class definitions in site.pp, and now, I just want to test my ENC based class definitions for only node-A. I have ''node-A.yaml'' that has the extra class definitions. Should this be enough or I need to put empty class definitions for node-B and node-C in the ''yaml'' format in order for puppet to work properly ? I could try and learn, but don''t want to break the active cluster (bad prior experience). ---- On Tuesday, March 26, 2013 6:37:39 PM UTC-5, Pete wrote:> > On 27 March 2013 01:02, Martin Alfke <tux...@gmail.com <javascript:>>wrote: > >> Hi. >> On 26.03.2013, at 15:44, iamauser wrote: >> >> Hello, >> >> Is it possible to configure an ENC to provide class definition to a >> number of nodes at the same time where a few other nodes are controlled in >> the site.pp by node ''FQDN'' {blah} for the same puppetmaster ? >> >> >> ENC and site.pp do not replace each other. >> You can use them in parallel at the same time. >> >> Please note that you even may have one node in both (ENC and site.pp). >> Puppet will merge all classes and parameters. >> > > It also seems that if you put some nodes in site.pp et al you need a > definition for all of them. > You can get around having to put an entry in for all of your nodes by > putting in an empty default node. > > > >> >> >> I am wondering once parameters are set for the master to look for an ENC >> based definitions, will it conflict with the site.pp node definitions ? >> For example these two basic parameters for ENC : >> >> node_terminus = exec >> external_nodes = /usr/local/bin/enclassifier >> >> Thanks for any suggestion. >> >> ------ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Martin Alfke
2013-Mar-28 15:44 UTC
Re: [Puppet Users] Running ENC alongside site.pp (node defn)
Hi, On Mar 27, 2013, at 2:32 AM, iamauser <tapas.sarangi@gmail.com> wrote:> Thanks Pete and Martin. Follow up question. > > Let''s assume I have 3 nodes (A,B,C), and all of them have some class definitions in site.pp, and now, I just want to test my ENC based class definitions for only node-A. I have ''node-A.yaml'' that has the extra class definitions. Should this be enough or I need to put empty class definitions for node-B and node-C in the ''yaml'' format in order for puppet to work properly ?There is no need for extra yaml files as long as the ENC does not throw an error. YOu can test it by running your enc manually and use a non existing node as parameter. If your enc does provide empty yaml only as output then you are fine.> > I could try and learn, but don''t want to break the active cluster (bad prior experience). > > ---- > > > > > > > On Tuesday, March 26, 2013 6:37:39 PM UTC-5, Pete wrote: > On 27 March 2013 01:02, Martin Alfke <tux...@gmail.com> wrote: > Hi. > On 26.03.2013, at 15:44, iamauser wrote: > >> Hello, >> >> Is it possible to configure an ENC to provide class definition to a number of nodes at the same time where a few other nodes are controlled in the site.pp by node ''FQDN'' {blah} for the same puppetmaster ? > > ENC and site.pp do not replace each other. > You can use them in parallel at the same time. > > Please note that you even may have one node in both (ENC and site.pp). > Puppet will merge all classes and parameters. > > It also seems that if you put some nodes in site.pp et al you need a definition for all of them. > You can get around having to put an entry in for all of your nodes by putting in an empty default node. > > > >> >> I am wondering once parameters are set for the master to look for an ENC based definitions, will it conflict with the site.pp node definitions ? >> For example these two basic parameters for ENC : >> >> node_terminus = exec >> external_nodes = /usr/local/bin/enclassifier >> >> Thanks for any suggestion. >> >> ------ >> >> -- >> You received this message because you are subscribed to the Google Groups "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. >> To post to this group, send email to puppet...@googlegroups.com. >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com. > To post to this group, send email to puppet...@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
iamauser
2013-Mar-28 18:54 UTC
Re: [Puppet Users] Running ENC alongside site.pp (node defn)
On Thursday, March 28, 2013 10:44:04 AM UTC-5, Martin Alfke wrote:> > Hi, > > On Mar 27, 2013, at 2:32 AM, iamauser <tapas....@gmail.com <javascript:>> > wrote: > > > Thanks Pete and Martin. Follow up question. > > > > Let''s assume I have 3 nodes (A,B,C), and all of them have some class > definitions in site.pp, and now, I just want to test my ENC based class > definitions for only node-A. I have ''node-A.yaml'' that has the extra class > definitions. Should this be enough or I need to put empty class definitions > for node-B and node-C in the ''yaml'' format in order for puppet to work > properly ? > > There is no need for extra yaml files as long as the ENC does not throw an > error. > YOu can test it by running your enc manually and use a non existing node > as parameter. > If your enc does provide empty yaml only as output then you are fine. > >aha! that''s an important aspect. In case of an empty file if I set the ENC to throw ''zero'' as exit code this should work, shouldn''t it ? This means, the client nodes will either look for a definition in the site.pp or in the form a ''yaml'' file or BOTH to receive the catalog from the master as long as the exit code for ENC is zero, if specified. Just putting it out in writing so that it is easier for NP. Thanks for your suggestions... --------- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Maybe Matching Threads
- Trouble with ENC and static.pp : enabling ENC fails to find node even with default node in site.pp
- error trying ENC.
- trouble w/ Foreman as ENC, agents and environments
- Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"
- dashboard as enc not working