When I create a droplet on DigitalOcean from a snapshot that utilizes Ubuntu 18.04 none of my cloud-config settings seem to come across.
The snapshot was created using Packer and Ansible which complicates the install somewhat. I have narrowed down the problem with the snapshot to the following Ansible role:
- name: Download Virtualmin Install Script
- name: Virtualmin Install
shell: ~/install.sh --yes chdir=/root
There are several modifications I have made to the default Virtualmin templates and configuration files. I think the issue of the cloud-config userdata not coming across might be related to a misconfiguration in one of these files.
The droplet get's created and from what I can tell functions normally, however any userdata I provide during creation through my cloud-config script does not come across to the final built server. It does not matter what I put in the cloud-config script but for testing it looks like this:
- content: |
This is a test file
- touch /root/foo
- echo "THIS IS THE TEST DATA"