[Opinion] Restructure: Operating Systems/Provisioning Templates

Hi,

after playing around with foreman for a while, I got some idea for
changes.

I have a lot of different Provisioning-Templates for different
systems. Now the list of Provisioning Templates is a complete mess…
The search feature is nice, but I got a different idea:

As you have to create an OS and then assign the Provisioning-Template
to it, I would suggest to do it the other way around.

You create an OS, in the OS you create your provisioning templates,
snippets and so on.
So you get something like a Tree:

OS
-> Templates
-> Template 1
-> Template 2
-> Partitioning
-> Partitioning Templ 1
-> Partitioning Templ 2
-> Snippets
-> Snippet 1
-> Snippet 2

To create a new template you go to the OS view, click on the OS,
select the section you want (templates/partitioning/snippets/whatever)
and you add stuff there, or clone an template to edit it afterwards.

This way, it is no longer necessary to click through every menu and
add the OS to the provisioning templates, partitioning templates etc.

So, what do you think of this idea?

> Hi,
>
> after playing around with foreman for a while, I got some idea for
> changes.
>
> I have a lot of different Provisioning-Templates for different
> systems. Now the list of Provisioning Templates is a complete mess…
> The search feature is nice, but I got a different idea:
>

I agree its not trivial, I didnt find any better way so far, so any
improvement is more then welcomed.

> As you have to create an OS and then assign the Provisioning-Template
> to it, I would suggest to do it the other way around.

You know its not the only way to assign right? there is also hostgroup
and environment based assignments.

>
> You create an OS, in the OS you create your provisioning templates,
> snippets and so on.

What if the same snippet is shared across os's?

··· On Thu, Jan 19, 2012 at 2:08 PM, Hypfvieh wrote:

So you get something like a Tree:

OS
-> Templates
-> Template 1
-> Template 2
-> Partitioning
-> Partitioning Templ 1
-> Partitioning Templ 2
-> Snippets
-> Snippet 1
-> Snippet 2

To create a new template you go to the OS view, click on the OS,
select the section you want (templates/partitioning/snippets/whatever)
and you add stuff there, or clone an template to edit it afterwards.

This way, it is no longer necessary to click through every menu and
add the OS to the provisioning templates, partitioning templates etc.

So, what do you think of this idea?


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.

Hi,

I know that hostgroup stuff… but for me it makes more sense to bind
the templates to the OS versions.

So you have one version of the OS, but different setups for this…
Another version of the same OS could have a completely different
template (e.g. I can remember some differences I had on Ubuntu 9.10 vs
10.04)
But different OSes usually dont share the same template (kickstart vs.
preseed vs. jumpstart).

I guess the best way for snippets would be splitting them in two
parts.
Global snippets, available for all templates of all OSes and
Local snippets, which are only available for the OS (or OS family)
they were created for.

Most snippets provided by default are for a certain type of OS anyway.
So it doesnt make sense to put a snippet for debian-preseed to a
redhat-kickstart install.

But this is simply a suggestion. I just thought about making the
configuration and usage more intuitive.
So the best way to achieve an easy setup is to put stuff together
which depends on another.
OSes depends on Provisioning Templates, otherwise they couldnt be
installed.

Maybe there are even more things we can put together, so understanding
is easier?

··· On 19 Jan., 15:45, Ohad Levy wrote: > On Thu, Jan 19, 2012 at 2:08 PM, Hypfvieh wrote: > > Hi, > > > after playing around with foreman for a while, I got some idea for > > changes. > > > I have a lot of different Provisioning-Templates for different > > systems. Now the list of Provisioning Templates is a complete mess... > > The search feature is nice, but I got a different idea: > > I agree its not trivial, I didnt find any better way so far, so any > improvement is more then welcomed. > > > As you have to create an OS and then assign the Provisioning-Template > > to it, I would suggest to do it the other way around. > > You know its not the only way to assign right? there is also hostgroup > and environment based assignments. > > > > > You create an OS, in the OS you create your provisioning templates, > > snippets and so on. > > What if the same snippet is shared across os's? > > > > > > > > > So you get something like a Tree: > > > OS > > -> Templates > > -> Template 1 > > -> Template 2 > > -> Partitioning > > -> Partitioning Templ 1 > > -> Partitioning Templ 2 > > -> Snippets > > -> Snippet 1 > > -> Snippet 2 > > > To create a new template you go to the OS view, click on the OS, > > select the section you want (templates/partitioning/snippets/whatever) > > and you add stuff there, or clone an template to edit it afterwards. > > > This way, it is no longer necessary to click through every menu and > > add the OS to the provisioning templates, partitioning templates etc. > > > So, what do you think of this idea? > > > -- > > 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.