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