All Questions
Tagged with terraform cloud-init
6
questions
0
votes
0
answers
780
views
My cloud config template file does not seem to be working when I use it to boot up a droplet in Digital Ocean?
I'm using Terraform to spin up a DO droplet, using an Ubuntu and Docker image. Checkout below:
resource "digitalocean_droplet" "web" {
image = "docker-20-04"
name ...
0
votes
1
answer
2k
views
cloud-init seems to be ignoring write-files script
H!
I am trying to configure VMs with cloud-init, using the terraform Libvirt provider.
For some reason I don't understand, setting hostname works, but writing and running a script for additional ...
4
votes
2
answers
18k
views
run a script via cloud-init
I know cloud-init allows to run commands as part of the cloud-init yml
runcmd:
- [ pwd ]
but I am looking for a way to execute a full shell script.
Some people just pipe the output of a curl into a ...
1
vote
1
answer
3k
views
Mount Azure virtual hard disks on filesystem during Azure Linux VM creation using Terraform
I am using Terraform to automate VM creation on Microsoft Azure. The Terraform script shall accept data disk configuration as below (refer data_disk_size_gb), create the virtual hard disk and ...
2
votes
0
answers
2k
views
Cloud Init with Flatcar Linux -- Configuration not applying when passing custom file?
I'm using Telmate's Terraform provider for Proxmox and trying to deploy Flatcar linux virtual machines using Cloud Init by passing files via cicustom. Based on their example, I have crafted the ...
3
votes
1
answer
2k
views
How do I attach, format and mount a volume on boot in ecs?
I want my persistence (ebs) volume to be separate from my auto-scaling group launch configuration. So that it won't be accidentally auto deleted by terraform, or something. Also I may do something ...