In the puppet document has such a word:
ENCs can co-exist with standard node definitions in site.pp, 
and the classes declared in each source are effectively merged. 

but in my test  environment,if not work:

for example(puppet version 2.6.11)

now enable ENC
[root@puppetmaster-tools puppet]# cat /etc/puppet/puppet.conf|tail -3
    external_nodes = /etc/puppet/puppet_node_classifier
    modulepath = /etc/puppet/modules


site.conf :
node /test.test.cn/ {
    include tools
}
#node /local-web-cdn-70-200.idc.test.cn/ {
#    class { "tools::test": version => "test" }
#    include tools::test
#    include test
#}

The result :
node test.test.cn work ok,but node local-web-cdn-70-200.idc.test.cn has 
some error like this:
-bash-3.2# puppetd --test 
err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Could not find default node or by name with
 'local-web-cdn-70-200.idc.test.cn, local-web-cdn-70-200.idc.test, 
local-web-cdn-70-200.idc, local-web-cdn-70-200' on
 node local-web-cdn-70-200.idc.test.cn
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

if edit site.pp, for examlpe:
site.conf :
#node /test.test.cn/ {
#    include tools
#}
#node /local-web-cdn-70-200.idc.test.cn/ {
#    class { "tools::test": version => "test" }
#    include tools::test
#    include test
#}
two node  work ok,all used ENC 

how to co-exist ENC and standard node definitions in site.pp?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to