Puppetserver
Настройка
При интеграции с puppetserver иногда возникает ошибка в логе пакета smart-proxy /var/log/smart-proxy/proxy.log
2020-07-15T14:54:24 [E] Error while retrieving puppet classes for 'production' environment
2020-07-15T14:54:24 [W] Error details for Error while retrieving puppet classes for 'production' environment: <Proxy::Error::HttpError>: 403 Forbidden request: /puppet/v3/environment_classes (method :get). Please see the server logs for details.
и в логе puppetserver /var/log/puppetserver/puppetserver.log
2020-07-15T14:54:24.840+03:00 ERROR [qtp2111311669-39] [p.t.a.rules] Forbidden request: your.puppet.server(fe80:0:0:0:9427:66ff:feb0:9a37%2) access to /puppet/v3/environment_classes (method :get) (authenticated: true) denied by rule 'puppetlabs deny all'.
Для решения добавьте в файл /etc/puppetserver/conf.d/auth.conf следующий код:
{
match-request: {
path: "/puppet/v3/environment_classes"
type: path
method: get
}
allow: "*"
sort-order: 500
name: "puppetlabs environment classes"
},
Запуск
Настраиваем на самозапуск puppetserver, и перезапускаем:
# systemctl enable puppetserver # systemctl restart puppetserver