Custom Ubuntu image, built from Ubuntu 18.04 LTS, and provisioned with:
The provision process is performed by Ansible. Install it upfront.
For creating the Vagrant box, first of all, install Vagrant, and then run:
./build-and-deploy.sh
The deployment step requires the environment variable VAGRANT_CLOUD_TOKEN. To set it, you must have defined a token in Vagrant Cloud.
For creating the Azure image, first of all, install Packer, and then follow the steps:
- Create the resource group myResourceGroup in Azure
- Create a service principal in Azure with permission to create resource groups
- Set the environment variables AZURE_CLIENT_ID, AZURE_SECRET, AZURE_SUBSCRIPTION_ID and AZURE_TENANT with the service principal authentication info
- Build the Ubuntu image myUbuntuImage in the resource group myResourceGroup by executing
packer build azure.json