Problem: Any VMware VM provisioned from an image template will be created and re-IP’d just fine but then nothing else happens. Build status will say “Pending Installation” until the token expires. I’m able to run the registration manually after the fact with no issues.
Expected outcome: Hosts should register to foreman after the fact without manual intervention
The next thing that needed to be done was to ensure that the Perl based customization engine was being used by disabling Guest OS Customization with cloud-init. For this we need to edit the file /etc/cloud/cloud.cfg and remove the following line:
You can do this via an Ansible playbook as such:
- name: "Revert guest customizations to use perl based customization engine"