How to provision a node via puppet if it’s using an image-based virtualization technology

provisioningpuppetvmware-esxivmware-vcenter

I'm trying to integrate puppet and vSphere via this module:

https://forge.puppetlabs.com/puppetlabs/vsphere

This module lets you create servers via a few lines of puppet code.

I have a vm template that I'm cloning from. It has vmware tools and puppet client installed on it.

The node comes up, but then the puppet master thinks all successive clones are the same node, probably because they have the same SSL cert.

So how is this supposed to work? I can fix the SSL issue on a single node, but I want to be able to create 100 nodes in an automated fashion.

It looks like puppet resource vsphere_vm is supposed to show the guest ip, which I would imagine could then be fed into puppet and have the node provisioned from there, but that command is not producing any ip information currently.

There must be someone using this puppet vsphere plugin who is using it to spin up nodes in an automated fashion. This also implies a more general question: how do you automate creation and provisioning of a server with puppet if you are using an image based virtualization technology like vSphere?

As an item of note, I'm using puppet enterprise 2015.2.

Best Answer

You have to detect what information is used by puppet server to detect same node and prepare script for changing it. Script will be prepared to run just after boot of new node and re-uniq those information, puppet server will think this is new server and will manage it.

Related Topic