2016-12-16 25 views
0

嘗試使用PuppetDB(V5.1.2)模塊單獨的節點上安裝PuppetDB和木偶服務器上運行的代理木偶當我得到 Notice: Unable to connect to puppetdb server (https://puppetdb.example.com:8081): Connection refused - connect(2) for "puppetdb.example.com" port 8081(嘗試配置的服務器PuppetDB模塊)。 這裏是我的site.pppuppetdb沒有路由與PuppetDB模塊安裝時,主辦

node 'puppetserver.example.com' { 

    class { 'puppetdb::master::config': 
    puppetdb_server => 'puppetdb.example.com', 
    } 
} 
node 'puppetdb.example.com' { 

    class { 'puppetdb::database::postgresql': 
    listen_addresses => '0.0.0.0', 
    } 

    class { 'puppetdb::server': 
    database_host => 'puppetdb.example.com', 
    } 
} 

PuppetDB運行,在jetty.inihostssl-host設置爲0.0.0.0。 Ssl證書沒問題。 我在做什麼錯?

+0

什麼節點無法連接到PuppetDB? –

+0

節點木偶服務器。 –

+0

是的,理論上你可以使用任何端口,但他們似乎有東西硬編碼使用端口8081. –

回答

0

能否請您確認以下配置文件太

/etc/puppetlabs/puppet/puppetdb.conf 
    [main] 
    server_urls = https://puppetdb.example.com:8081 

而且

/etc/puppetlabs/puppet/routes.yaml 
    --- 
    master: 
    facts: 
     terminus: puppetdb 
     cache: yaml 

這些文件應該已經填入你puppetdb,並應具有如上確切條目。

另一個重要的配置是您的SSL設置爲puppetdb,使用下面的命令來驗證它。

puppetdb ssl-setup