Peter Van Biesen
2013-Jun-11 12:04 UTC
[Puppet Users] Puppet 3.2 : ENC overrides environment in puppet.conf / howto force environment
Hi, we recently upgraded from 2.7 to 3.2. We do not use ENC but use the node.rb for uploading the reports to foreman. However, the 3.2 puppetmaster overrides the environment that''s been set in the puppet.conf. Is there a way to turn this off ? Related: ENC can override the puppet.conf, can the site.pp do this too ? Can I set an entry to force an agent to be in a particular environment, whatever is in the puppet.conf ? Thanks in advance, Peter. -- IK GA ERVOOR Een zorgjob. Da''s werken met je hoofd, handen en hart. http://www.ikgaervoor.be ------------------------------------------------------------ --------------------- DISCLAIMER : De personeelsleden van het agentschap doen hun best om in e-mails betrouwbare informatie te geven. Toch kan niemand rechten doen gelden op basis van deze inhoud. Als in de e-mail een stellingname voorkomt, is dat niet noodzakelijk het standpunt van het agentschap. Rechtsgeldige beslissingen of officiele standpunten worden alleen per brief toegestuurd. -- 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.
Erik Dalén
2013-Jun-12 10:54 UTC
Re: [Puppet Users] Puppet 3.2 : ENC overrides environment in puppet.conf / howto force environment
You can turn it off by not having the ENC set any environment. So comment that part out from your ENC script. On 11 Jun 2013 16:06, "Peter Van Biesen" <peter.vanbiesen@vaph.be> wrote:> Hi, > > we recently upgraded from 2.7 to 3.2. We do not use ENC but use the > node.rb for uploading the reports to foreman. However, the 3.2 puppetmaster > overrides the environment that''s been set in the puppet.conf. Is there a > way to turn this off ? > > Related: ENC can override the puppet.conf, can the site.pp do this too ? > Can I set an entry to force an agent to be in a particular environment, > whatever is in the puppet.conf ? > > Thanks in advance, > > Peter. > > > > IK GA ERVOOR > Een zorgjob. Da''s werken met je hoofd, handen en hart. > http://www.ikgaervoor.be > > ------------------------------**------------------------------** > --------------------- > DISCLAIMER : > De personeelsleden van het agentschap doen hun best om in e-mails > betrouwbare informatie te geven. Toch kan niemand rechten doen gelden op > basis van deze inhoud. Als in de e-mail een stellingname voorkomt, is > dat niet noodzakelijk het standpunt van het agentschap. Rechtsgeldige > beslissingen of officiele standpunten worden alleen per brief toegestuurd. > > -- > 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.
Dominic Cleal
2013-Jun-12 11:07 UTC
Re: [Puppet Users] Puppet 3.2 : ENC overrides environment in puppet.conf / howto force environment
On 11/06/13 13:04, Peter Van Biesen wrote:> Hi, > > we recently upgraded from 2.7 to 3.2. We do not use ENC but use the > node.rb for uploading the reports to foreman. However, the 3.2 > puppetmaster overrides the environment that''s been set in the > puppet.conf. Is there a way to turn this off ?I don''t think you can disable this behaviour, since it''s a fix. In Foreman, you can disable the environment being set by setting "enc_environment" to false under More>Settings>Puppet. Recent node.rb ENC scripts can also take a --no-environment option to do the same, which you can set in puppet.conf. Lastly, you can disable the ENC script if you don''t use it for classes or parameters and instead add "/etc/puppet/node.rb --push-facts" to a cronjob, which will just upload facts for all hosts to Foreman instead. -- Dominic Cleal Red Hat Engineering -- 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.
jcbollinger
2013-Jun-12 14:36 UTC
[Puppet Users] Re: Puppet 3.2 : ENC overrides environment in puppet.conf / howto force environment
On Tuesday, June 11, 2013 7:04:05 AM UTC-5, Peter Van Biesen wrote:> > > Related: ENC can override the puppet.conf, can the site.pp do this too ? > Can I set an entry to force an agent to be in a particular environment, > whatever is in the puppet.conf ? > >Not in site.pp, no. The environment setting is exposed in Puppet manifests as a top-level variable, and once set during a given catalog run, the values of Puppet variables cannot be changed. Note, in fact, that that $manifestdir/site.pp is merely the default choice for the entry-point manifest. An alternative entry-point can be specified in puppet.conf (''manifest'' or ''manifestdir'' property), and in fact different entry-point manifests can be specified for different environments. Therefore, the environment must be determined before the entry-point manifest is parsed. John -- 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.