Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Vincent Bernat created an issue Puppet / PUP-3027 ENC should be aware of the requested environment Issue Type: Bug Affects Versions: 3.6.2 Assignee: Andy Parker Components: Server Created: 07/Aug/14 6:22 AM Priority: Normal Reporter: Vincent Bernat With the following configuration in /etc/puppet/puppet.conf: external_nodes = $confdir/environments/$environment/classifier.rb $environment is always expanded to production (the default one), despite a client requesting another environment. This issue has already been discussed here: https://groups.google.com/forum/#!topic/puppet-users/xa2mdX0Rklg The provided workaround is to parse the YAML fact dump. However, this file is generated after classification and is therefore not up-to-date when classification is first run. It would be convenient that either $environment to be expanded to the requested environment or to find a way for the classifier to find the requested environment.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Andy Parker updated an issue Puppet / PUP-3027 ENC should be aware of the requested environment Change By: Andy Parker Issue Type: Bug Improvement Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Andy Parker commented on an issue Re: ENC should be aware of the requested environment The "Accepted" status means that I don't have a plan for implementing this in the foreseeable future, but it is something that would be a welcome change. Add Comment Puppet / PUP-3027 ENC should be aware of the requested environment With the following configuration in {{/etc/puppet/puppet.conf}}: {code} external_nodes = $confdir/environments/$environment/classifier.rb {code} {{$environment}} is always expanded to {{production}} (the default one), despite a client requesting another environment. This issue has already been discussed here: https://groups.google.com/forum/#!to... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Andy Parker commented on an issue Re: ENC should be aware of the requested environment This seems like a reasonable request. The ruby code that implements the terminus does have access to the requested environment, however the exec terminus doesn't pass that along to the executed process. Since the current interface is that the command is executed with the nodename as the argument I think there are really only two choices: 1. Send the environment as a second argument (possibly break executables that assert the number of arguments they are given) 2. Send the argument as an environment variable. The second approach might be preferable since it also lets us add other information without require ever more complex argument parsing for the commands. Add Comment Puppet / PUP-3027 ENC should be aware of the requested environment With the following configuration in {{/etc/puppet/puppet.conf}}: {code} external_nodes = $confdir/environments/$environment/classifier.rb {code} {{$environment}} is always expanded to {{production}} (the default one), despite a client requesting another environment. This issue has already been discussed here: https://groups.google.com/forum/#!to... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Vincent Bernat commented on an issue Re: ENC should be aware of the requested environment OK, I'll try to implement it shortly. Add Comment Puppet / PUP-3027 ENC should be aware of the requested environment With the following configuration in {{/etc/puppet/puppet.conf}}: {code} external_nodes = $confdir/environments/$environment/classifier.rb {code} {{$environment}} is always expanded to {{production}} (the default one), despite a client requesting another environment. This issue has already been discussed here: https://groups.google.com/forum/#!to... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Michal Zubac commented on PUP-3027 Re: ENC should be aware of the requested environment I would also appreciate this feature, as I want to assign classes using ENC based on chosen environment. Without worrying where the environment decision came from. I am voting for the second argument choice. Add Comment This message was sent by Atlassian JIRA (v6.3.15#6346-sha1:dbc023d) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Josh Cooper assigned an issue to Unassigned Puppet / PUP-3027 ENC should be aware of the requested environment Change By: Josh Cooper Assignee: Andrew Parker Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Josh Cooper commented on PUP-3027 Re: ENC should be aware of the requested environment Thank you for filing this issue. We agree it is likely an improvement, but due to other issues demanding precedence, we don’t anticipate being able to address this any time soon. If you are interested in submitting a patch to the repository for this project at https://github.com/puppetlabs, please open a pull request and re-open this ticket. Pending that, we are closing this as “Won’t Fix.” We may revisit it at a later time, and if so will re-open this ticket. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Josh Cooper updated an issue Puppet / PUP-3027 ENC should be aware of the requested environment Change By: Josh Cooper Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-3027) ENC should be aware of the requested environment
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-3027 ENC should be aware of the requested environment Change By: Moses Mendoza Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.