Skip to main content

All Questions

Tagged with
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 ...
yung peso's user avatar
  • 101
1 vote
2 answers
1k views

Terraform: How to Detect and Branch on Operating System?

Given this block of pseudo code from Terraform: resource "null_resource" { provisioner "local-exec" { command = "echo hello" interpreter = local.os == ...
Frederick Ollinger's user avatar
0 votes
1 answer
655 views

how to use BASH to convert the path to the home folder in the variable bash, in quotation marks into a working one

Use the script, I am trying to create a directory in my home folder. Due to the specifics of integration with terraforms, parameters are passed in this way: variable = "value" It would be ...
K S's user avatar
  • 1
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 ...
zaidwaqi's user avatar
  • 153
0 votes
0 answers
1k views

terraform - shall one use simple disk or linux LVM?

Is there any drawback of using LVM disks in terraform managed virtual machines? Currently I come to the project where all disks are simple linux disks, but terraform is unable to resize them up ...
Wojtas.Zet's user avatar
0 votes
1 answer
2k views

random_pet in Terraform: Error: Cycle:

I am trying to generate random hostnames for a couple of servers. However when running terraform apply I get an error message "Error: Cycle: random_pet.swm01_managers, hcloud_server.swm01_managers" ...
Rick McClatchie's user avatar
0 votes
2 answers
5k views

Azure: How to attach data-disks on VM startup, formatting if necessary

I want to provision an Azure VM with Terraform and configure it by using a custom AMI created by Packer. I want an attached, snapshotted, managed data-disk. I want to use Oracle Linux 7.4 What is ...
Feenaboccles's user avatar
1 vote
1 answer
2k views

Control user creation in GCP instances

I have recently started using Google Cloud Plattform with Terraform, for a minor project my company is doing. A smallish issue is bugging me, but I don't seem to find any relevant documentation about ...
Bruno9779's user avatar
  • 182