End to end vm provisioning with vSphere module
Hi, Here I am looking for a complete solution not just an answer. For my end to end solution I want to use CLI instead of PE console. Following cmd is used to provision a VM but I am looking for additional stuffs which may come along with the same command or a script.
puppet resource vsphere_vm ......
- Can we register the node with PE server in the same command when VM gets created?
- Can we define classes/modules should be applied as soon as the VM is up?
The idea behind my question is to create a vm, register with puppet server, apply default modules(modules could be selected from existing one). These operation is supposed to be wrapped in a single command or script.
I am not able to find these answers anywhere even puppetlabs doc do not explain module CLI nicely. Any help would be appreciated.