Hey,
I have a working foreman configuration, prepared by clicking through the
web interface.
Now I'm trying to translate this into hammer commands, in order to enable
provisioning.
The greatest part is self-explaining<http://www.dict.cc/englisch-deutsch/self-explaining.html>. However,
I have problems with some features:
- Environment: import from…
- Provisioning Templates: Build PXE Default
Can somebody tell me how to model this with hammer?
And another question:
After successfully creating an architecure, an os and a domain, I want to
link templates to the os.
> hammer template update --id 2 --operatingsystem-ids 1
This ticks the box for my os in the templates association tab in the web
interface, and the dropdown menu of the os' templates only contains this
template.
But the template is not selected. Is this a problem? Is it possible to
select it?
Thanks,
Fredi
> Hey,
>
> I have a working foreman configuration, prepared by clicking through the
> web interface.
> Now I'm trying to translate this into hammer commands, in order to
> enable provisioning.
>
> The greatest part is self-explaining
> <http://www.dict.cc/englisch-deutsch/self-explaining.html>. However, I
> have problems with some features:
>
Hello,
> * Environment: import from…
this one is hammer proxy import_classes
.
> * Provisioning Templates: Build PXE Default
Unfortunately building PXE defaults has not been implemented yet. We
keep adding commands so you can either stay tuned or consider sending us
a patch. This one would be rather simple I guess.
>
> Can somebody tell me how to model this with hammer?
>
>
> And another question:
>
> After successfully creating an architecure, an os and a domain, I want
> to link templates to the os.
>
> hammer template update --id 2 --operatingsystem-ids 1
>
>
> This ticks the box for my os in the templates association tab in the web
> interface, and the dropdown menu of the os' templates only contains this
> template.
> But the template is not selected. Is this a problem? Is it possible to
> select it?
It shouldn't be a problem in this case. The UI dropdowns are there for
selecting default templates. It should be resolved automatically when
you create a new host if there is only one template of each kind. AFAIK
we don't have api for setting the defaults yet.
Regards
Tomas
···
On 01/03/2014 10:36 AM, Jan-Frederic Markert wrote:
Thanks,
Fredi
–
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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks for the help!
> After successfully creating an architecure, an os and a domain, I want
> > to link templates to the os.
> >
> > hammer template update --id 2 --operatingsystem-ids 1
> >
> >
> > This ticks the box for my os in the templates association tab in the web
> > interface, and the dropdown menu of the os' templates only contains this
> > template.
> > But the template is not selected. Is this a problem? Is it possible to
> > select it?
> It shouldn't be a problem in this case. The UI dropdowns are there for
> selecting default templates. It should be resolved automatically when
> you create a new host if there is only one template of each kind. AFAIK
> we don't have api for setting the defaults yet.
When configuring an os for a new host and clicking "Provisioning Templates:
Resolve", there is the following message:
> Sorry but no templates were configured.
Does this mean that it automatically resolves this in a later stage?
When I manually choose the elements in the dropdown, they show up after
resolving.
/Fredi
> Thanks for the help!
>
> > After successfully creating an architecure, an os and a domain, I
> want
> > to link templates to the os.
> >
> > hammer template update --id 2 --operatingsystem-ids 1
> >
> >
> > This ticks the box for my os in the templates association tab in
> the web
> > interface, and the dropdown menu of the os' templates only
> contains this
> > template.
> > But the template is not selected. Is this a problem? Is it
> possible to
> > select it?
> It shouldn't be a problem in this case. The UI dropdowns are there for
> selecting default templates. It should be resolved automatically when
> you create a new host if there is only one template of each kind. AFAIK
> we don't have api for setting the defaults yet.
>
>
> When configuring an os for a new host and clicking "Provisioning
> Templates: Resolve", there is the following message:
>
> Sorry but no templates were configured.
>
> Does this mean that it automatically resolves this in a later stage?
>
> When I manually choose the elements in the dropdown, they show up after
> resolving.
>
My answer wasn't complete. Templates are resolved automatically only
when you set a default for the OS or there's matching combination
template-hostgroup-environment. I forgot to mention the second part,
sorry. In other cases it behaves as you describe.
There's a gap in the CLI for associating templates too. I opened bugs
for the issues we mention here:
http://projects.theforeman.org/issues/3968
http://projects.theforeman.org/issues/3969
http://projects.theforeman.org/issues/3970
We'll try to fix them soon as they are commands on the provisioning path.
Regards,
Tomas
···
On 01/03/2014 06:36 PM, Jan-Frederic Markert wrote:
/Fredi
–
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 foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks again.
Good to know, that it might be implemented soon.
Regards,
Fredi
···
Am Mittwoch, 8. Januar 2014 11:26:36 UTC+1 schrieb Tomas Strachota:
>
> On 01/03/2014 06:36 PM, Jan-Frederic Markert wrote:
> > Thanks for the help!
> >
> > > After successfully creating an architecure, an os and a domain, I
> > want
> > > to link templates to the os.
> > >
> > > hammer template update --id 2 --operatingsystem-ids 1
> > >
> > >
> > > This ticks the box for my os in the templates association tab in
> > the web
> > > interface, and the dropdown menu of the os' templates only
> > contains this
> > > template.
> > > But the template is not selected. Is this a problem? Is it
> > possible to
> > > select it?
> > It shouldn't be a problem in this case. The UI dropdowns are there
> for
> > selecting default templates. It should be resolved automatically
> when
> > you create a new host if there is only one template of each kind.
> AFAIK
> > we don't have api for setting the defaults yet.
> >
> >
> > When configuring an os for a new host and clicking "Provisioning
> > Templates: Resolve", there is the following message:
> >
> > Sorry but no templates were configured.
> >
> > Does this mean that it automatically resolves this in a later stage?
> >
> > When I manually choose the elements in the dropdown, they show up after
> > resolving.
> >
>
> My answer wasn't complete. Templates are resolved automatically only
> when you set a default for the OS or there's matching combination
> template-hostgroup-environment. I forgot to mention the second part,
> sorry. In other cases it behaves as you describe.
>
> There's a gap in the CLI for associating templates too. I opened bugs
> for the issues we mention here:
> http://projects.theforeman.org/issues/3968
> http://projects.theforeman.org/issues/3969
> http://projects.theforeman.org/issues/3970
>
> We'll try to fix them soon as they are commands on the provisioning path.
>
> Regards,
> Tomas
>
> >
> > /Fredi
> >
> > --
> > 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 foreman-user...@googlegroups.com .
> > To post to this group, send email to forema...@googlegroups.com.
>
> > Visit this group at http://groups.google.com/group/foreman-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
>
Hey,
I have a two further questions regarding hammer commands for GUI features:
- Is there a way to change settings for foreman via hammer?
For instance:
> hammer settings set --name query_local_nameservers --value true
- Is there a way to add "Valid host group and environment combinations" to
a provisioning template via hammer?
Regards,
Fredi
···
Am Freitag, 10. Januar 2014 09:26:23 UTC+1 schrieb Jan-Frederic Markert:
>
> Thanks again.
> Good to know, that it might be implemented soon.
>
> Regards,
> Fredi
>
> Am Mittwoch, 8. Januar 2014 11:26:36 UTC+1 schrieb Tomas Strachota:
>>
>> On 01/03/2014 06:36 PM, Jan-Frederic Markert wrote:
>> > Thanks for the help!
>> >
>> > > After successfully creating an architecure, an os and a domain,
>> I
>> > want
>> > > to link templates to the os.
>> > >
>> > > hammer template update --id 2 --operatingsystem-ids 1
>> > >
>> > >
>> > > This ticks the box for my os in the templates association tab in
>> > the web
>> > > interface, and the dropdown menu of the os' templates only
>> > contains this
>> > > template.
>> > > But the template is not selected. Is this a problem? Is it
>> > possible to
>> > > select it?
>> > It shouldn't be a problem in this case. The UI dropdowns are there
>> for
>> > selecting default templates. It should be resolved automatically
>> when
>> > you create a new host if there is only one template of each kind.
>> AFAIK
>> > we don't have api for setting the defaults yet.
>> >
>> >
>> > When configuring an os for a new host and clicking "Provisioning
>> > Templates: Resolve", there is the following message:
>> >
>> > Sorry but no templates were configured.
>> >
>> > Does this mean that it automatically resolves this in a later stage?
>> >
>> > When I manually choose the elements in the dropdown, they show up after
>> > resolving.
>> >
>>
>> My answer wasn't complete. Templates are resolved automatically only
>> when you set a default for the OS or there's matching combination
>> template-hostgroup-environment. I forgot to mention the second part,
>> sorry. In other cases it behaves as you describe.
>>
>> There's a gap in the CLI for associating templates too. I opened bugs
>> for the issues we mention here:
>> http://projects.theforeman.org/issues/3968
>> http://projects.theforeman.org/issues/3969
>> http://projects.theforeman.org/issues/3970
>>
>> We'll try to fix them soon as they are commands on the provisioning path.
>>
>> Regards,
>> Tomas
>>
>> >
>> > /Fredi
>> >
>> > --
>> > 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 foreman-user...@googlegroups.com.
>> > To post to this group, send email to forema...@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/foreman-users.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>>
>>