2012-05-16 88 views
3

我在我的Mac上有幾個並行VMS,我試圖建立一個作爲puppet master和puppet客戶端的簡單連接。傀儡服務器/客戶端連接失敗

  1. 傀儡師(在CentOS 6.2)
  2. 木偶客戶端(在Ubuntu 12.1服務器)

嘗試使用下面的命令來連接客戶端時。

puppet agent --server 192.168.1.103 --waitforcert 60 --test --verbose 

它試圖與下面的輸出

warning: peer certificate won't be verified in this SSL session 
info: Caching certificate for ca 
warning: peer certificate won't be verified in this SSL session 
warning: peer certificate won't be verified in this SSL session 
info: Creating a new SSL certificate request for puppet1.localdomain 
info: Certificate Request fingerprint (md5) : 2E:C6:D2:C2:........ 
warning: peer certificate won't be verified in this SSL session 
warning: peer certificate won't be verified in this SSL session 
warning: peer certificate won't be verified in this SSL session 
warning: peer certificate won't be verified in this SSL session 
notice: Did not receive certificate 

連接在服務器端,我有調試木偶大師與下面的輸出聽:

notice: Starting Puppet master version 2.7.14 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: access[^/catalog/([^/]+)$]: allowing 'method' find 
info: access[^/catalog/([^/]+)$]: allowing $1 access 
info: access[^/node/([^/]+)$]: allowing 'method' find 
info: access[^/node/([^/]+)$]: allowing $1 access 
info: access[/certificate_revocation_list/ca]: allowing 'method' find 
info: access[/certificate_revocation_list/ca]: allowing * access 
info: access[/report]: allowing 'method' save 
info: access[/report]: allowing * access 
info: access[/file]: allowing * access 
info: access[/certificate/ca]: adding authentication any 
info: access[/certificate/ca]: allowing 'method' find 
info: access[/certificate/ca]: allowing * access 
info: access[/certificate/]: adding authentication any 
info: access[/certificate/]: allowing 'method' find 
info: access[/certificate/]: allowing * access 
info: access[/certificate_request]: adding authentication any 
info: access[/certificate_request]: allowing 'method' find 
info: access[/certificate_request]: allowing 'method' save 
info: access[/certificate_request]: allowing * access 
info: access[/]: adding authentication any 
info: Inserting default '/status' (auth true) ACL because none were found in '/etc/puppet/auth.conf' 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: Could not find certificate for 'puppet1.localdomain' 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: Could not find certificate_request for 'puppet1.localdomain' 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
notice: puppet1.localdomain has a waiting certificate request 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: Could not find certificate for 'puppet1.localdomain' 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: Could not find certificate for 'puppet1.localdomain' 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: Could not find certificate for 'puppet1.localdomain' 
err: Could not resolve 192.168.1.101: no name for 192.168.1.101 
info: Could not find certificate for 'puppet1.localdomain' 

是否有可能設置一個簡單的木偶配置,而不使用主機分辨率,只是簡單的IP地址?

任何幫助?

+0

它不回答你的問題,但可以解決你的問題。您可以使用avahi/mdns來提供本地DNS解析。只需將它安裝在centos和Ubuntu上,你應該可以ping通hostname.local –

+0

我不介意將另一個vm設置爲域控制器,但只是想知道是否有人使用ip地址設置了此選項 – Maverick

+0

您是否嘗試過運行這使用sudo? –

回答

2

我解決了這個問題,只是在/ etc/hosts文件中添加了兩個VM的ip。然後傀儡爲我工作得很好。