jimmy
2012-Sep-13 21:36 UTC
[Puppet Users] pe version of puppet, vmware provisioning with from template with guest customization
Hi All, I''m using puppet enterprise and am getting a feel for the vmware provisioning. I''ve been able to provision vms by using: puppet node_vmware create NameOfMyTemplate That sort of works, but I basically have an identical copy of the original vm i created a template from. Same mac address, hostname, etc. in vSphere, you can create a vm from a template and give it a guest customization file which will set the hostname, autogenerate the mac address as well as other things. I''d like to do this from puppet but there doesn''t appear to be an option to apply a customization file. If that''s not possible, maybe another approach is possible. Basically i want to be able to autoprovision virtual machines. With just creating from a clone, i can''t even get the vm on the network so it''s basically unreachable to apply any puppet scripts that would allow me to manage configurations. Thanks for any help, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/idL3TVma9yQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jeff McCune
2012-Sep-14 20:59 UTC
Re: [Puppet Users] pe version of puppet, vmware provisioning with from template with guest customization
On Thu, Sep 13, 2012 at 2:36 PM, jimmy <james.miller110377@gmail.com> wrote:> Hi All, > > I''m using puppet enterprise and am getting a feel for the vmware > provisioning. I''ve been able to provision vms by using: > > puppet node_vmware create NameOfMyTemplate > > That sort of works, but I basically have an identical copy of the original > vm i created a template from. Same mac address, hostname, etc. in > vSphere, you can create a vm from a template and give it a guest > customization file which will set the hostname, autogenerate the mac > address as well as other things. I''d like to do this from puppet but there > doesn''t appear to be an option to apply a customization file. >This question is probably better suited for the PE Users list [1]. I''m surprised the new vm is getting the same MAC address. Cloning a template should result in the new VM getting a new MAC address, and we recommend using DHCP to get an address for the instance. What version of vSphere are you running? This information might have something to do with the difference in behavior. [1] https://groups.google.com/a/puppetlabs.com/forum/?fromgroups#!forum/pe-users -Jeff -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.