El 11/03/2014 20:47, "Steve Neuharth" <steve.neuha...@gmail.com> escribió: > > I have an ENC that's set up like this: > > [master] > masterport = 8140 > bindaddress = 0.0.0.0 > ssl_client_header = SSL_CLIENT_S_DN > ssl_client_verify_header = SSL_CLIENT_VERIFY > autosign = true > storeconfigs = true > > environment = production > manifest = $confdir/environments/$environment/manifests/site.pp > modulepath = $confdir/environments/$environment/modules > > > # Sets PuppetDB database backend > storeconfigs_backend = puppetdb > > # Reporting > reports = log > reporturl = http://localhost:3000/reports > > # Local Inventory Service > facts_terminus = active_record > > # Activate external node classifier > external_nodes = $confdir/environments/$environment/node.rb > node_terminus = exec > > > when I run puppet agent on my test box, I get this: > > [root@stevetest3 ~]# puppet agent --test --environment=dev > Warning: Unable to fetch my node definition, but the agent run will continue: > Warning: Error 400 on SERVER: Failed to find stevetest3.gblmktgaws.comvia > exec: Execution of '/etc/puppet/environments/production/node.rb stevetest3.gblmktgaws.com' returned 1: > > so, jumping back to the puppet server I try the ENC and I get this: > > [root@puppet puppet]# /etc/puppet/environments/production/node.rb stevetest3.gblmktgaws.com > --- > environment: > classes: > parameters: > role: webserver > ec2_tag_Name: stevetest3 > env: dev > client: foo > > [root@puppet puppet]# echo $? > 0 > > so: > > 1) why is it running the node classifier from the production environment instead dev like I asked
Not sure, but have you tried to remove the environment=production from the master section? If its about the puppet master itself it should be in the agent section. > 2) why can't puppetmaster or passenger run the damn script? Have you tried to run it with the puppet master user ( usually puppet) it could be some kind of permissions problem. > > I'm totally stuck, any help would be greatly appreciated. > > --steve > > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d88e2c6c-75ba-42e8-a043-4ad576ef5ef6%40googlegroups.com . > For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF_B3ddAxuCqPzbq3YJWn3D_MT7aXt-SxpH%3DycKX2pY9ZVVOpg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.