AVE1810
2013-Oct-30 08:47 UTC
[Puppet Users] Warning: Local environment: "42A" doesn''t match server specified node environment "production", switching agent to "production"
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 -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f52ce64b-a300-488c-9734-8c0166cd5748%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Daniele Sluijters
2013-Oct-30 09:51 UTC
[Puppet Users] Re: Warning: Local environment: "42A" doesn''t match server specified node environment "production", switching agent to "production"
Hi, Have you tried --environment=42A? -- Daniele Sluijters On Wednesday, 30 October 2013 09:47:13 UTC+1, AVE1810 wrote:> > 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 >-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/879d4d5b-2aa2-4823-9208-ef85476fedee%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
AVE1810
2013-Oct-30 10:25 UTC
[Puppet Users] Re: Warning: Local environment: "42A" doesn''t match server specified node environment "production", switching agent to "production"
Yes, it doesn''t work. I have the same error Le mercredi 30 octobre 2013 10:51:32 UTC+1, Daniele Sluijters a écrit :> > Hi, > > Have you tried --environment=42A? > > -- > Daniele Sluijters > > On Wednesday, 30 October 2013 09:47:13 UTC+1, AVE1810 wrote: >> >> 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 >> >-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7f535234-d37f-4e76-b831-abc6d41ec07c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
james.eckersall@fasthosts.com
2013-Oct-30 10:43 UTC
[Puppet Users] Re: Warning: Local environment: "42A" doesn''t match server specified node environment "production", switching agent to "production"
Hi, I believe the following link should resolve this problem for you. https://groups.google.com/forum/#!topic/foreman-users/p5w0if2AGlo J On Wednesday, 30 October 2013 08:47:13 UTC, AVE1810 wrote:> > 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 >-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/851581f1-d1cc-40b0-8ffd-84ea29597dd4%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
AVE1810
2013-Oct-30 11:51 UTC
[Puppet Users] Re: Warning: Local environment: "42A" doesn''t match server specified node environment "production", switching agent to "production"
Yes, it resolve my problem. Thank you. Best regards Le mercredi 30 octobre 2013 11:43:33 UTC+1, james.e...@fasthosts.com a écrit :> > Hi, > > I believe the following link should resolve this problem for you. > > https://groups.google.com/forum/#!topic/foreman-users/p5w0if2AGlo > > J > > On Wednesday, 30 October 2013 08:47:13 UTC, AVE1810 wrote: >> >> 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 >> >-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a99f78b9-e597-4dd9-9294-84a3d0f2ff77%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.