Hello Everyone,
I am trying to get Katello 3.7 to integrate with Chef. We are running Chef Server 12.2.
I receive the following error from Katello/Foreman when trying to do a discovery of Chef Environments:
Aug 24 18:25:31 katello1p /usr/sbin/katello-service: *** start finished successfuly ***
Aug 24 18:25:40 katello1p smart-proxy: 2018-08-24 18:25:40 - Errno::EACCES - Permission denied - /etc/chef/client.pem:
I ran the following command to install the Chef Plugin with Katello:
foreman-installer --enable-foreman-plugin-chef --enable-foreman-proxy-plugin-chef --enable-foreman-plugin-tasks --foreman-proxy-plugin-chef-server-url="https://chef1.example.com/organizations/mycompany" --foreman-proxy-plugin-chef-client-name="mycompany-validator" --foreman-proxy-plugin-chef-private-key="/etc/chef/client.pem" --no-enable-puppet --foreman-server-ssl-crl=""
This is what my /etc/foreman-proxy/settings.d/chef.yml file looks like:
---
:enabled: true
:chef_authenticate_nodes: true
:chef_server_url: https://chef1.example.com/organizations/mycompany
# smart-proxy client node needs to have some admin right on chef-server
# in order to retrive all nodes public keys
# e.g. 'host.example.net'
:chef_smartproxy_clientname: mycompany-validator
# e.g. /etc/chef/client.pem
:chef_smartproxy_privatekey: /etc/chef/client.pem
# turning of chef_ssl_verify is not recommended as it turn off authentication
# you can try set path to chef server certificate by chef_ssl_pem_file
# before setting chef_ssl_verify to false
# note that chef_ssl_pem_file must contain both private key and certificate
# because chef-api 0.5 requires it
:chef_ssl_verify: true
:chef_ssl_pem_file: /etc/foreman-proxy/chef_ssl.
I’m not sure what I am doing wrong here. Any help would be appreciated.
Thank you.