From e79d2bb75efb2e5f45040e0e5d790b3d71bab321 Mon Sep 17 00:00:00 2001 From: Peter Bray Date: Tue, 8 Dec 2020 23:04:01 +1100 Subject: [PATCH 1/2] Update method for retrieving 'oauth_consumer_key' and 'oauth_consumer_secret' https://projects.theforeman.org/issues/31472 https://community.theforeman.org/t/web-site-manual-2-3-0-out-of-date-instructions-on-obtaining-oauth-consumer-key-and-oauth-consumer-secret/21586 --- _includes/manuals/nightly/3.2.3_installation_scenarios.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/manuals/nightly/3.2.3_installation_scenarios.md b/_includes/manuals/nightly/3.2.3_installation_scenarios.md index 3fa9b018d8..79b581e258 100644 --- a/_includes/manuals/nightly/3.2.3_installation_scenarios.md +++ b/_includes/manuals/nightly/3.2.3_installation_scenarios.md @@ -70,7 +70,7 @@ foreman-installer \ --foreman-proxy-oauth-consumer-secret= {% endhighlight %} -Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from *Administer > Settings > Authentication*, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. +Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from your Foreman server, using: `grep oauth_consumer /etc/foreman/settings.yaml`, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. #### PuppetDB integration @@ -119,7 +119,7 @@ foreman-installer \ --foreman-proxy-oauth-consumer-secret= {% endhighlight %} -Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from *Administer > Settings > Authentication*, and set the Foreman URL appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. +Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from your Foreman server, using: `grep oauth_consumer /etc/foreman/settings.yaml`, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. Command line arguments for a smart proxy configured with just TFTP, BIND, setting DNS forwarders and overriding the default forward and reverse DNS zones: From 172f6794f1e1d3a0e0e9c0007896a856e31f4ac2 Mon Sep 17 00:00:00 2001 From: Peter Bray Date: Fri, 11 Dec 2020 10:29:41 +1100 Subject: [PATCH 2/2] =?UTF-8?q?Update=20method=20for=20retrieving=20'oauth?= =?UTF-8?q?=5Fconsumer=5Fkey'=20and=20'oauth=5Fconsumer=E2=80=A6=20e79d2bb?= =?UTF-8?q?=20=20=E2=80=A6=5Fsecret'=20(Revised)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As requested, updated to use foreman-rake. Note: used 'sudo', as I was not able to determine the password an unprivelged user should use when executing the command without sudo(8) --- _includes/manuals/nightly/3.2.3_installation_scenarios.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/manuals/nightly/3.2.3_installation_scenarios.md b/_includes/manuals/nightly/3.2.3_installation_scenarios.md index 79b581e258..9d734bd76b 100644 --- a/_includes/manuals/nightly/3.2.3_installation_scenarios.md +++ b/_includes/manuals/nightly/3.2.3_installation_scenarios.md @@ -70,7 +70,7 @@ foreman-installer \ --foreman-proxy-oauth-consumer-secret= {% endhighlight %} -Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from your Foreman server, using: `grep oauth_consumer /etc/foreman/settings.yaml`, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. +Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from your Foreman server, using: `sudo foreman-rake config | grep oauth_consumer`, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. #### PuppetDB integration @@ -119,7 +119,7 @@ foreman-installer \ --foreman-proxy-oauth-consumer-secret= {% endhighlight %} -Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from your Foreman server, using: `grep oauth_consumer /etc/foreman/settings.yaml`, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. +Fill in the OAuth consumer key and secret values from your Foreman instance, retrieve them from your Foreman server, using: `sudo foreman-rake config | grep oauth_consumer`, and set the Foreman URLs appropriately. These allow the smart proxy to register automatically with the Foreman instance, or disable with `--foreman-proxy-register-in-foreman=false`. Command line arguments for a smart proxy configured with just TFTP, BIND, setting DNS forwarders and overriding the default forward and reverse DNS zones: