On 19/10/16 00:04, [email protected] wrote:
> When I have foreman::oauth_active set to false, install attempts result
> in the following error:
> 
> /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman2.domain]: 
> Could
> not evaluate: Proxy foreman2.domain cannot be retrieved: unknown error
> (response 401)
> /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7:in
> `proxy'
> /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in
> `id'
> /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in
> `exists?'
> /usr/share/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
> etc.
> 
> The httpd error log shows the 401 error as well, mentioning "OAuth gem
> v0.4.7" at the end of the line - which was surprising considering I
> thought I'd set oauth_active to false.

Automatic registration of the smart proxy from the installer requires
OAuth, it uses it to authenticate to Foreman.

> When I enable oauth (which I do not actually want to do), the installer
> runs great.
> 
> Can anyone tell me what I'm missing here?

You will need to disable registration
(--foreman-proxy-register-in-foreman=false) and then add the smart proxy
manually via the UI or CLI.

-- 
Dominic Cleal
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to