Login enabled and external node classification (ENC)

Is there some trick or a different script available to get external
node classification working whilst keeping :login: true in
settings.yaml?

The included node.rb script does not look like it will work with authentication.

··· -- Mike

> Is there some trick or a different script available to get external
> node classification working whilst keeping :login: true in
> settings.yaml?
>
> The included node.rb script does not look like it will work with authentication.

it does, which url are you using foreman/node/#{certname}?format=yml"
does not require authentication.

Ohad

··· On Sat, Oct 29, 2011 at 1:00 AM, Mikael Fridh wrote: > -- > Mike > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To post to this group, send email to foreman-users@googlegroups.com. > To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en. > >

I see,

as soon as I turn login on again, it fails:

Processing HostsController#externalNodes to yml (for 10.100.1.10 at
2011-10-30 20:57:35) [GET]
Parameters: {"name"=>"admin-lv-1.prod.foonet.net", "format"=>"yml",
"action"=>"externalNodes", "controller"=>"hosts"}
Failed to generate external nodes for admin-lv-1.prod.foonet.net with
undefined method `name' for nil:NilClass
Completed in 5ms (View: 0, DB: 1) | 412 Precondition Failed
[http://foreman/node/admin-lv-1.prod.foonet.net?format=yml]

Looks like the correct URL.

··· On Sat, Oct 29, 2011 at 6:48 AM, Ohad Levy wrote: > On Sat, Oct 29, 2011 at 1:00 AM, Mikael Fridh wrote: >> Is there some trick or a different script available to get external >> node classification working whilst keeping :login: true in >> settings.yaml? >> >> The included node.rb script does not look like it will work with authentication. > > it does, which url are you using foreman/node/#{certname}?format=yml" > does not require authentication.


Mikael Fridh

>>> Is there some trick or a different script available to get external
>>> node classification working whilst keeping :login: true in
>>> settings.yaml?
>>>
>>> The included node.rb script does not look like it will work with authentication.
>>
>> it does, which url are you using foreman/node/#{certname}?format=yml"
>> does not require authentication.
>
> I see,
>
> as soon as I turn login on again, it fails:
>
> Processing HostsController#externalNodes to yml (for 10.100.1.10 at
> 2011-10-30 20:57:35) [GET]
> Parameters: {"name"=>"admin-lv-1.prod.foonet.net", "format"=>"yml",
> "action"=>"externalNodes", "controller"=>"hosts"}
> Failed to generate external nodes for admin-lv-1.prod.foonet.net with
> undefined method `name' for nil:NilClass
> Completed in 5ms (View: 0, DB: 1) | 412 Precondition Failed
> [http://foreman/node/admin-lv-1.prod.foonet.net?format=yml]
>
> Looks like the correct URL.
>

That was already fixed - see Bug #1262: Node.rb fails when host has no owner - Foreman

Ohad

··· On Sun, Oct 30, 2011 at 11:02 PM, Mikael Fridh wrote: > On Sat, Oct 29, 2011 at 6:48 AM, Ohad Levy wrote: >> On Sat, Oct 29, 2011 at 1:00 AM, Mikael Fridh wrote:

Mikael Fridh


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.

> That was already fixed - see Bug #1262: Node.rb fails when host has no owner - Foreman

Thanks.

··· -- Mikael Fridh