【发布时间】:2018-08-18 05:13:35
【问题描述】:
我无法让 puppet 节点加入 master,我在 AWS 云上使用 puppet 企业。
大师
puppetserver --version
puppetserver version: 2017.3.0.38
节点
# puppet agent --test
Error: Could not request certificate: Error 403 on SERVER: Forbidden request: /puppet-ca/v1/certificate/ca (method :get). Please see the server logs for details.
Exiting; failed to retrieve certificate and waitforcert is disabled
显然错误消息与主端的权限有关,当我检查主端的日志时,我看到了
ERROR [qtp2147089302-255] [p.t.a.rules] Forbidden request: 10.0.10.224 access to /puppet-ca/v1/certificate/ca (method :get) (authenticated: false) denied by rule 'puppetlabs certificate'.
但我检查了 auth.conf 的新 HOCON 格式是否允许未经身份验证的节点发送 CSR
{
"allow-unauthenticated": "*",
"match-request": {
"method": "get",
"path": "/puppet-ca/v1/certificate/",
"query-params": {},
"type": "path"
},
"name": "puppetlabs certificate",
"sort-order": 500
}
我还检查了 pe-puppet-server.conf 没有使用旧的 auth.conf 方法
# (optional) Authorize access to Puppet master endpoints via rules specified
# in the legacy Puppet auth.conf file (if true or not specified) or via rules
# specified in the Puppet Server HOCON-formatted auth.conf (if false).
use-legacy-auth-conf: false
max-active-instances: 2
max-requests-per-instance: 0
environment-class-cache-enabled: true
请指教,windows和linux都出现同样的错误消息
【问题讨论】:
-
不确定,但
"path": "/puppet-ca/v1/certificate/"与请求不匹配/puppet-ca/v1/certificate/ca
标签: puppet aws-opsworks puppet-enterprise