Project

General

Profile

Actions

Bug #16669

closed

Wrong file referenced in puppet_proxy_ssh documentation

Added by Jason Nance over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF