Does this perform the registration (and likely redundant refresh):

hammer proxy create --name $HOSTNAME --url https://$HOSTNAME:8443
hammer proxy refresh-features --name $HOSTNAME

I've dug around the hammer interface and this seems to be the only thing 
that matches (to my inexperience in foreman/hammer eyes).

Thanks,
- chris


On Wednesday, October 19, 2016 at 12:17:18 AM UTC-7, Dominic Cleal wrote:
>
> On 19/10/16 00:04, [email protected] <javascript:> 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] <javascript:> 
>

-- 
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