Hello,
How can associate a class automatically to a host without using the
GUI ?
need for batch purpose
Vincent
Do you mean how to add a default class(es) to host without assigning the host to a group?
Corey
···
On Jun 17, 2011, at 6:14 AM, Vincent wrote:
Hello,
How can associate a class automatically to a host without using the
GUI ?
need for batch purpose
Vincent
–
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.
yes
I can update lot of stuff with the foreman api
But we can not add or remove additional class with the api
Vincent
···
On Jun 17, 7:03 pm, Corey Osman wrote:
> Do you mean how to add a default class(es) to host without assigning the host to a group?
>
> Corey
> On Jun 17, 2011, at 6:14 AM, Vincent wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > How can associate a class automatically to a host without using the
> > GUI ?
> > need for batch purpose
>
> > Vincent
>
> > --
> > 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 athttp://groups.google.com/group/foreman-users?hl=en.
found with some help of ohadlevy
Thanks
curl -H "Accept:application/json"
-k -u lmc:lmc
-d "_method=put"
-d "host[puppetclass_ids][]=1"
-d "host[puppetclass_ids][]=2"
http://0.0.0.0:5000/hosts/hostXXX
···
On Jun 20, 10:49 am, Vincent wrote:
> yes
>
> I can update lot of stuff with the foreman api
> But we can not add or remove additional class with the api
>
> Vincent
>
> On Jun 17, 7:03 pm, Corey Osman wrote:
>
>
>
>
>
>
>
> > Do you mean how to add a default class(es) to host without assigning the host to a group?
>
> > Corey
> > On Jun 17, 2011, at 6:14 AM, Vincent wrote:
>
> > > Hello,
>
> > > How can associate a class automatically to a host without using the
> > > GUI ?
> > > need for batch purpose
>
> > > Vincent
>
> > > --
> > > 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 athttp://groups.google.com/group/foreman-users?hl=en.