2016-08-23 85 views
0

我想在主机所在的同一台机器上测试木偶客户机。我遵循本教程“http://www.elsotanillo.net/2011/08/installing-puppet-master-and-client-in-the-same-host-the-debian-way/”。他说,在适当的时候生成SSL是保持主机和客户机在一台机器上成功通信的诀窍。我杀死了puppet master进程,生成puppet.conf文件,就像他在该链接中提供的那样,安装了puppet client,但是当我尝试使用下面的命令生成SSL时。它失败了。你可以看到下面的日志。一台机器上的木偶主机和客户机

puppetd ​​--no-守护进程--onetime --verbose --waitforcert 30

I replaced puppetd with puppet agent to make it work in latest version of puppet 

Warning: Unable to fetch my node definition, but the agent run will continue:

Warning: Connection timed out - connect(2)

Info: Retrieving pluginfacts

Error: /File[/home/lhdadmin/.puppet/var/facts.d]: Failed to generate additional resources using 'eval_generate': Connection timed out - connect(2)

Error: /File[/home/lhdadmin/.puppet/var/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: Connection timed out - connect(2)

Info: Retrieving plugin

Error: /File[/home/lhdadmin/.puppet/var/lib]: Failed to generate additional resources using 'eval_generate': Connection timed out - connect(2)

Error: /File[/home/lhdadmin/.puppet/var/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: Connection timed out - connect(2)

我试图安装puppetdb以为那就是缺失的组件可以触发上述错误,但它找不到puppetdb模块来安装。见下文

须藤木偶资源包puppetdb错误确保=最新

Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppetdb' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package puppetdb Error: /Package[puppetdb]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppetdb' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package puppetdb

包{ 'puppetdb':确保=> '清除',}

+0

我是否需要puppetdb才能使用? – Kenshin

回答

0

啊哈,我觉得你有没有在init.pp中提到你的puppet类,或者在node.pp中定义了你的节点。 如果你不想使用puppetdb,那么请不要包含在你的puppet/puppet.conf文件中,如果你想使用它,然后通过在puppet.conf文件中提到的用户手动登录来交叉检查puppetdb。

storeconfigs = true 
dbname = puppet-db 
dbadapter = mysql 
dbuser = puppet-user 
dbpassword = puppet 
dbserver = localhost 

此外,检查适当的回购在/etc/apt/sources.listE: Unable to locate package puppetdb这个错误通常发生是由于失败的互联网连接,或者如果它是无法到达服务器。

相关问题