无法从Puppet master检索Puppet代理SSL证书

时间:2017-05-08 06:22:20

标签: configuration puppet

我已经配置了Puppet Master-Agent设置(OS:Ubuntu)。两者都可以互相ping / ssh。 DNS设置正确。当执行'puppet agent -t'生成证书时,Master可以生成新的CA和证书,而Agent正在抛出错误。

我收到错误以及解决方案,我按照建议执行并进一步收到:

screenshot of Puppet agent SSL error

Exiting; failed to retrieve certificate and waitforcert is disabled

请帮助解决这个问题。 下面是/etc/puppet/puppet.conf(在Master-Agent上相同)

#Settings in [main] are used if a more specific section does not set a value.
[main]
    certname = puppetmaster01.example.com
    logdir=/var/log/puppet
    vardir=/var/lib/puppet
    basemodulepath = /etc/puppetlabs/puppet/environments/production/modules:/opt/puppet/share/puppet/modules
    ssldir=/var/lib/puppet/ssl
    rundir=/var/run/puppet
    factpath=$vardir/lib/facter
    server = puppetmaster01.example.com
    user = puppet
    group = puppet
    archive_files = true
    archive_file_server = puppetmaster01.example.com

[master]
# This section is used by the Puppet master and Puppet cert applications.
    dns_alt_names = puppet,puppet.example.com,puppetmaster01,puppetmaster01.example.com,puppetagent01,puppetagent01.example.com
    certname = puppetmaster01.example.com
    reports = http,puppetdb
    reporturl = https://localhost:443/reports/upload
    node_terminus = exec
    external_nodes = /etc/puppetlabs/puppet-dashboard/external_node
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    storeconfigs_backend = puppetdb
    storeconfigs = true
    autosign = true

# This section is used by the Puppet agent application.
[agent]
    report = true
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    graph = true
    pluginsync = true
    environment = production

1 个答案:

答案 0 :(得分:0)

在人偶主控/代理部署中以及从文档中,管理员将需要在人偶主控上签署客户端的证书。你在木偶大师上签署了证书吗?

取决于您所使用的木偶版本: 尝试运行sudo puppetserver ca sign fullnameOFhost.something.com 要么 sudo puppet cert sign <name of host>

您可以再次运行sudo puppet cert listsudo puppetserver ca list来查看需要签名的优秀客户端证书,具体取决于版本。