I am puzzled and banging my head on the wall since two hours.

After doing some basic and first time setup with ENC (see my earlier posts 
here<https://groups.google.com/forum/#!msg/puppet-users/eoq31kUHdlk/2bI1gLc5m5MJ>)
 
I succeeded to propagate client data. Now when I revert back to the old 
site.pp style, everything broke loose.

For ENC I had to change the puppet.conf to include "node_terminus" and 
"external_node" parameters, and had to comment them out when I go to 
site.ppstyle,  but puppet just doesn't let me do this anymore.

I am using a template, e.g.  "
/etc/puppet/module/modulename/template/puppet.conf.erb" to populate 
puppet.conf in clients, but this doesn't work anymore.

If I manually change "/etc/puppet/puppet.conf" in a client machine, running 
puppet 
agent changes it back to the one where the lines "external_nodes" and 
"node_terminus" were defined. 

I don't understand where is this ghost file that is overwriting puppet.conffor 
clients irrespective of what is defined in the 
puppet.conf.erb.

The file resource type for puppet.conf looks like this. "puppet" is also a 
module name in /etc/puppet/modules.

 file {
    "/etc/puppet/puppet.conf" :
      ensure => present,
      content => template("puppet/puppet.conf.erb")
      owner => "puppet",
      group => "puppet",
      notify => Class["puppet::puppet_service"],
      require => Class["puppet::puppet_install"];
 }


Now if I run puppet agent on one of the clients, it complains with the 
following error and uses cached catalog. 

Warning: Unable to fetch my node definition, but the agent run will 
continue:
Warning: Error 400 on SERVER: You must set the 'external_nodes' parameter 
to use the external node terminus
...
....
....
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Failed when searching for node node_name: You must set the 'external_nodes' 
parameter to use the external node terminus
Notice: Using cached catalog
Info: Applying configuration version '1357861593'

Any help is appreciated. I am just lost at this moment with no clue. 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/sIIbH85G7qgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to