Hello together,
i have a question about the architecture design of foreman, wich i dont
understand from a users perspective.
Why does foreman support only one provisioning user data template per
operating system? I dont really understand the benefit from this, because i
have some scenarios in my head, where it could be useful while provisioning
a new host to chooese between different user data templates. I want to give
two simple scenarios:
-
I want to provisioning image based from a vmware template per
foreman-vmware with a user data template. So maybe i want
sometimes provisioning a host without static ip configuration and other
times i want to provisioning with a static ip configuration. In this
screnario i always have to edit the adapter settings in the user data
template before i go to create a new host. Because if i have adapter
settings in the user data template who expect ip adresses and so on,
the provisioning process over vmware will fail if iam not providing this in
foreman. If i want the host just get a random ip adress from the dhcp
server and dont set it static, i have to kick the static adapter settings
out of the user data template before creating a new host. -
Another thing is, if i have multiple environments. I install over the
user data template for example over powershell command the windows puppet
agent. Also define there in wich environment i want to provisioning over
installation arguments from the puppet agent msi file. So that meens that i
always have to edit the user data template when i want to change the
environment before creating a new host. Because in the new host dialouge i
can choose the environment, but the agent dosent care and always use
"production" if i didnt provide other environments over installation
arguments.
Like this i think its very unlucky, especially if you work with more users
on the same foreman master server and they all want to provisioning
different hosts with different needs in different environments.
For me it would be the best if i just choose in the "new host"-dialogue
image based provisioning" and after i choose my operating system and click
on "resolve" he return me a list of different user data templates for my
needs and not only always one. So that every user can chooese what they
need at that moment.
I cant really imagen that iam the only one who has this "problem", maybe
its because i dont understand the design architecture of foreman. So i want
to ask here, why its designed like this?
Thanks in advance