serwei2014@gmail.com
2013-Feb-20 12:27 UTC
[Puppet Users] Help needed in setting up a simple ENC
puppet maser conf: [main] logdir = /var/log/puppet rundir = /var/run/puppet ssldir = $vardir/ssl [master] classfile = $vardir/classes.txt localconfig = $vardir/localconfig user = root group = root fileserverconfig = /etc/puppet/fileserver.conf reportdir = /home/logs/puppet/reports masterhttplog = /home/logs/puppet/masterhttp.log masterlog = /home/logs/puppet/puppetmaster.log reports = log,foreman reports=foreman,log templatedir = /etc/puppet/templates node_terminus = exec external_nodes = /etc/puppet/puppet_node_classifier site.pp: #node default { # exec {"echo 123": # path => "/sbin:/usr/bin:/usr/sbin:/bin", # } #} #node /local-web-cdn-70-200.idc.test.cn/ { # include tools #} run script: [root@puppetmaster-tools yaml]# sh /etc/puppet/puppet_node_classifier local-web-cdn-70-200.idc.test.cn --- environment: production classes: - tools Permission : [root@puppetmaster-tools yaml]# ll /etc/puppet/puppet_node_classifier -rwxr-xr-x 1 root root 133 Feb 20 20:01 /etc/puppet/puppet_node_classifier but agent cat not running: -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 cancel exegesis site.pp ,it work ok, how ? -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.