2016-08-23 81 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這個錯誤通常發生是由於失敗的互聯網連接,或者如果它是無法到達服務器。

相關問題