Issue #14716 has been updated by Stefan Renema.

Hi Ken,

is it possible that ticket #1171 is not the right referral? (it links to an 
issue 4 years ago) Also we work with PE 2.5.1 and RHEL 5.8, so this might be 
very well the same issue.

Also I'd like to contribute that at this point I set the environment in both 
the [agent] AND [main] and the automatic run still fails. When I however run it 
by hand (puppet agent -t on the local node) it will run succesfully.

Kind regards,

Stefan

Ken Johnson wrote:
> We've had a customer report this happening under RHEL 5.5 with PE 2.5.1. They 
> were able to get the correct environment by specifying it as a command line 
> option but automated Puppet runs used the default environment. Once they 
> moved the environment option line from [agent] to [main] the Puppet agent 
> used the correct environment during runs. Zendesk ticket #1171 has the full 
> story.


----------------------------------------
Bug #14716: puppet agent not using specified environment 
https://projects.puppetlabs.com/issues/14716#change-66102

Author: Stefan Renema
Status: Needs More Information
Priority: Normal
Assignee: Stefan Renema
Category: agent
Target version: 
Affected Puppet version: 2.7.12
Keywords: puppet agent environment
Branch: 


Hi,

using PE 2.5. I found that when I run puppetagent on commandline, life would be 
good, and would run succesfully. 
However, the automatic runs would fail. I checked the master accesslog, and it 
shows that it was using the default production environment, instead of the one 
I specified in the agent puppet.conf. That explains the errors.
As a test, I moved the environment setting in puppet.conf from [agent] to 
[main]. Now it doesn't fail anymore. Here 
(http://docs.puppetlabs.com/guides/environment.html#configuring-environments-for-agent-nodes)
 you say it wouldn't matter whether the environment is set in [agent] or 
[main]. Did I misunderstood? Do I have other options then setting environment 
in [main]?




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to