I am creating VMs in vsphere and attaching them to foreman using either
puppet or associate vm (just started with this method so I haven't decided
which will be used in the end). I've already in place an infrastructure to
provision hosts in foreman (using provision templates: pxe, kickstart,
finish). I would like to apply only the "finish" template (run the same
configuration on these VMs that I am attaching after creation). Is this
even possible? Tried creating an OS without provision and pxe templates,
but got an error while creating the host.
Hello
I'm not sure I understand your use-case completely but by associating the vm
you avoid provisioning therefore provisioning templates can't be executed.
Maybe you want to do image based provisioning where only finish template is
used but in this case Foreman create the VM on your compute resource. If you
already have VM that you want to get into Foreman and run some template on it,
you might be interested in remote execution plugin [1] which would allow doing
it through SSH.
Hope this helps
···
On Sunday 13 of March 2016 08:02:07 ghidu wrote: > I am creating VMs in vsphere and attaching them to foreman using either > puppet or associate vm (just started with this method so I haven't decided > which will be used in the end). I've already in place an infrastructure to > provision hosts in foreman (using provision templates: pxe, kickstart, > finish). I would like to apply only the "finish" template (run the same > configuration on these VMs that I am attaching after creation). Is this > even possible? Tried creating an OS without provision and pxe templates, > but got an error while creating the host.–
Marek
Thanks Marek for the tip. Actually I found a way to use only foreman
functionality: download the script from /unattended/script and run it on
the machine.
···
On Wed, Mar 16, 2016 at 9:34 AM, Marek Hulán wrote:On Sunday 13 of March 2016 08:02:07 ghidu wrote:
I am creating VMs in vsphere and attaching them to foreman using either
puppet or associate vm (just started with this method so I haven’t
decided
which will be used in the end). I’ve already in place an infrastructure
to
provision hosts in foreman (using provision templates: pxe, kickstart,
finish). I would like to apply only the “finish” template (run the same
configuration on these VMs that I am attaching after creation). Is this
even possible? Tried creating an OS without provision and pxe templates,
but got an error while creating the host.Hello
I’m not sure I understand your use-case completely but by associating the
vm
you avoid provisioning therefore provisioning templates can’t be executed.
Maybe you want to do image based provisioning where only finish template is
used but in this case Foreman create the VM on your compute resource. If
you
already have VM that you want to get into Foreman and run some template on
it,
you might be interested in remote execution plugin [1] which would allow
doing
it through SSH.Hope this helps
–
Marek–
You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/3GNA3aEFZgI/unsubscribe.
To unsubscribe from this group and all its topics, 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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.