Actions
Bug #16669
closedWrong file referenced in puppet_proxy_ssh documentation
Description
https://theforeman.org/manuals/1.12/index.html#4.3.6Puppet
In the "SSH" section the documentation includes the following sed
statements for updating the configuration so that the "Run Puppet" button uses the SSH provider:
sed -i 's!^#\?\(:use_provider:\).*$!\1 puppet_proxy_ssh!' \ /etc/foreman-proxy/settings.d/puppet.yml sed -i 's!^#\?\(:user:\).*$!\1 root!' \ /etc/foreman-proxy/settings.d/puppet.yml sed -i 's!^#\?\(:keyfile:\).*$!\1 /etc/foreman-proxy/id_rsa!' \ /etc/foreman-proxy/settings.d/puppet.yml
The second and third sed
statements are modifying the wrong file. It should be /etc/foreman-proxy/settings.d/puppet_proxy_ssh.yml
:
sed -i 's!^#\?\(:use_provider:\).*$!\1 puppet_proxy_ssh!' \ /etc/foreman-proxy/settings.d/puppet.yml sed -i 's!^#\?\(:user:\).*$!\1 root!' \ /etc/foreman-proxy/settings.d/puppet_proxy_ssh.yml sed -i 's!^#\?\(:keyfile:\).*$!\1 /etc/foreman-proxy/id_rsa!' \ /etc/foreman-proxy/settings.d/puppet_proxy_ssh.yml
Actions