ENC broken in the strangest way.

30 views
Skip to first unread message

Steve Neuharth

unread,
Mar 11, 2014, 3:47:10 PM3/11/14
to puppet...@googlegroups.com
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.com via 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
2) why can't puppetmaster or passenger run the damn script?

I'm totally stuck, any help would be greatly appreciated.

--steve


José Luis Ledesma

unread,
Mar 11, 2014, 4:04:02 PM3/11/14
to puppet...@googlegroups.com

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...@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.

Reply all
Reply to author
Forward
0 new messages