Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"

1,794 views
Skip to first unread message

AVE1810

unread,
Oct 30, 2013, 4:47:13 AM10/30/13
to puppet...@googlegroups.com
Hi,

When I run puppet agent --test --environment 42A, I have the following warning :
Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production".
...

The puppet manifest for the environment "42A" isn't applied.

The puppet version is 3.3.1-1puppetlabs1 on agent and puppetmaster node

puppet.conf on the agent node :

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

pluginsync = true

[agent]
server = puppet
report = true

-----------------------------------------------------------

puppet.conf on the puppetmaster node :

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

pluginsync = true

[production]
modulepath = /etc/puppet/environments/modules/production
manifest = /etc/puppet/environments/manifests/production/site.pp

[42A]
modulepath = /etc/puppet/environments/modules/install/42A
manifest = /etc/puppet/environments/manifests/install/site.pp

[agent]
server = puppet
report = true

[master]
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

storeconfigs = true
storeconfigs_backend = puppetdb

reports=log,puppetdb,foreman

external_nodes = /etc/puppet/node.rb
node_terminus = exec

-----------------------------------------------------------

If i comment  the last two  lines (external_nodes and node_terminus) on the puppetmaster puppet.conf node, The puppet manifest is applied correctly.

Anybody has an idea ?

Thanks

Daniele Sluijters

unread,
Oct 30, 2013, 5:51:32 AM10/30/13
to puppet...@googlegroups.com
Hi,

Have you tried --environment=42A?

-- 
Daniele Sluijters

AVE1810

unread,
Oct 30, 2013, 6:25:06 AM10/30/13
to puppet...@googlegroups.com
Yes, it doesn't work. I have the same error

james.e...@fasthosts.com

unread,
Oct 30, 2013, 6:43:33 AM10/30/13
to puppet...@googlegroups.com
Hi,

I believe the following link should resolve this problem for you.

https://groups.google.com/forum/#!topic/foreman-users/p5w0if2AGlo

J

AVE1810

unread,
Oct 30, 2013, 7:51:43 AM10/30/13
to puppet...@googlegroups.com
Yes, it resolve my problem.

Thank you.

Best regards
Reply all
Reply to author
Forward
0 new messages