Issue #14716 has been updated by Eric Hayes.

File Screen Shot 2012-07-27 at 6.37.06 PM.png added

I'm using Puppet Enterprise 2.5.2 (regular version 2.7.12) on Windows 2008R2 
and it does not appear to work with the puppetlabs-dism module unless I launch 
puppet like this:

<pre>
# this works just fine
puppet agent --test --debug --environment beta

# this does not work
puppet agent --test --debug
</pre>

Also note that I set the environment via the puppet dashboard (screenshot 
attached)

Here is my puppet agent configuration on the windows 2008r2 box:
<pre>
[main]
server=puppet
pluginsync=true
autoflush=true
archive_files=true
archive_file_server=puppet
graph=true
</pre>

And here is my puppet master configuration:
<pre>
[main]
    vardir = /var/opt/lib/pe-puppet
    logdir = /var/log/pe-puppet
    rundir = /var/run/pe-puppet
    modulepath = /etc/puppetlabs/puppet/modules:/opt/puppet/share/puppet/modules
    user = pe-puppet
    group = pe-puppet
    archive_files = true
    archive_file_server = puppet
    environment = beta

[master]
    certname = puppet
    dns_alt_names = puppet
    ca_name = '...redacted...'
    facts_terminus = inventory_active_record
    dbadapter = mysql
    dbname = console_inventory_service
    dbuser = console
    dbpassword = inflection
    dbserver = localhost
    reports = https, store
    reporturl = https://localhost:443/reports/upload
    node_terminus  = exec
    external_nodes = /etc/puppetlabs/puppet-dashboard/external_node
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    modulepath = 
$confdir/environments/$environment/modules:/opt/puppet/share/puppet/modules
    manifestdir = $confdir/environments/$environment/manifests
    manifest = $manifestdir/site.pp


[agent]
    certname = puppet
    server = puppet
    report = true
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    graph = true
    pluginsync = true
</pre>

The dism module failed to install dism components if I did not specify the 
environment.  It also did not even recognize the dism type if I installed it 
with the module tool like this:
<pre>
puppet module install puppetlabs-dism
</pre>


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

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