本文共 4965 字,大约阅读时间需要 16 分钟。
环境:
puppetserver端 RHEL5.8或者RHEL6.4[root@puppetserver1 etc]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga)puppetagent端 RHEL5.8 和RHEL6.4[root@agent3 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.4 (Santiago)[root@agent2 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.8 (Tikanga)[root@agent2 ~]# [root@agent3 ~]# 故障:puppetserver推送到RHEL6.4上OK,推送到RHEL5.8上报错,具体如下 关于agent端配置参考我的博客 操作:[root@puppetserver1 etc]# [root@puppetserver1 etc]# puppet kick -p 10 --host agent2.bsgchina.com失败Triggering agent2.bsgchina.comGetting statusstatus is runningHost agent2.bsgchina.com is already runningagent2.bsgchina.com finished with exit code 3Failed: agent2.bsgchina.com[root@puppetserver1 etc]# puppet kick -p 10 --host agent3.bsgchina.com成功Triggering agent3.bsgchina.comGetting statusstatus is successagent3.bsgchina.com finished with exit code 0Finished日志:[root@agent3 ~]# puppet agent --server=puppetserver1.bsgchina.com --verbose --no-daemonizenotice: Starting Puppet client version 2.7.21info: Caching catalog for agent3.bsgchina.cominfo: Applying configuration version '1377075268'notice: Finished catalog run in 0.37 secondsinfo: access[^/catalog/([^/]+)$]: allowing 'method' findinfo: access[^/catalog/([^/]+)$]: allowing $1 accessinfo: access[^/node/([^/]+)$]: allowing 'method' findinfo: access[^/node/([^/]+)$]: allowing $1 accessinfo: access[/certificate_revocation_list/ca]: allowing 'method' findinfo: access[/certificate_revocation_list/ca]: allowing * accessinfo: access[^/report/([^/]+)$]: allowing 'method' saveinfo: access[^/report/([^/]+)$]: allowing $1 accessinfo: access[/file]: allowing * accessinfo: access[/certificate/ca]: adding authentication anyinfo: access[/certificate/ca]: allowing 'method' findinfo: access[/certificate/ca]: allowing * accessinfo: access[/certificate/]: adding authentication anyinfo: access[/certificate/]: allowing 'method' findinfo: access[/certificate/]: allowing * accessinfo: access[/certificate_request]: adding authentication anyinfo: access[/certificate_request]: allowing 'method' findinfo: access[/certificate_request]: allowing 'method' saveinfo: access[/certificate_request]: allowing * accessinfo: access[/run]: allowing 'method' saveinfo: access[/run]: allowing * accessinfo: access[/]: adding authentication anyinfo: Inserting default '/status' (auth true) ACL because none were found in '/etc/puppet/auth.conf'notice: triggered runinfo: Caching catalog for agent3.bsgchina.cominfo: Applying configuration version '1377075268'notice: Finished catalog run in 0.37 secondsnotice: triggered runinfo: Caching catalog for agent3.bsgchina.cominfo: Applying configuration version '1377076924'info: FileBucket adding {md5}7cf100594d8ae6a01579e438a46420fainfo: /File[/etc/motd]: Filebucketed /etc/motd to puppet with sum 7cf100594d8ae6a01579e438a46420fanotice: /File[/etc/motd]/content: content changed '{md5}7cf100594d8ae6a01579e438a46420fa' to '{md5}2c63eed05992c19d860406fb538b029c'notice: Finished catalog run in 0.57 secondsnotice: triggered runinfo: Caching catalog for agent3.bsgchina.cominfo: Applying configuration version '1377076924'notice: Finished catalog run in 0.49 secondsinfo: Caching catalog for agent3.bsgchina.cominfo: Applying configuration version '1377076924'notice: Finished catalog run in 0.40 seconds^Cnotice: Caught INT; calling stop[root@agent2 puppet]# puppet agent --server=puppetserver1.bsgchina.com --verbose --no-daemonizenotice: Starting Puppet client version 2.7.21info: access[^/catalog/([^/]+)$]: allowing 'method' findinfo: access[^/catalog/([^/]+)$]: allowing $1 accessinfo: access[^/node/([^/]+)$]: allowing 'method' findinfo: access[^/node/([^/]+)$]: allowing $1 accessinfo: access[/certificate_revocation_list/ca]: allowing 'method' findinfo: access[/certificate_revocation_list/ca]: allowing * accessinfo: access[^/report/([^/]+)$]: allowing 'method' saveinfo: access[^/report/([^/]+)$]: allowing $1 accessinfo: access[/file]: allowing * accessinfo: access[/certificate/ca]: adding authentication anyinfo: access[/certificate/ca]: allowing 'method' findinfo: access[/certificate/ca]: allowing * accessinfo: access[/certificate/]: adding authentication anyinfo: access[/certificate/]: allowing 'method' findinfo: access[/certificate/]: allowing * accessinfo: access[/certificate_request]: adding authentication anyinfo: access[/certificate_request]: allowing 'method' findinfo: access[/certificate_request]: allowing 'method' saveinfo: access[/certificate_request]: allowing * accessinfo: access[/run]: allowing 'method' saveinfo: access[/run]: allowing * accessinfo: access[/]: adding authentication anyinfo: access[/]: allowing * accessinfo: Inserting default '/status' (auth true) ACL because none were found in '/etc/puppet/auth.conf'notice: Caught INT; calling stop如果需要交流puppet 可加入puppet技术交流QQ群 296934942转载地址:http://vopla.baihongyu.com/