Questions tagged [terraform-provider-openstack]

Terraform provider for Openstack.

Terraform provider for Openstack.

https://github.com/terraform-providers/terraform-provider-openstack

40 questions
4
votes
1 answer

Terraform - Error creating OpenStack loadbalancer: Resource not found

I'm trying to create an OpenStack load balancer with Terraform but I get the following error upon terraform apply: Error: Error creating openstack_lb_loadbalancer_v2: Resource not found on load-balancer/main.tf line 71, in…
kontrollanten
  • 2,649
  • 19
  • 32
3
votes
2 answers

Terraform Openstack Could not retrieve the list of available versions for provider

When I execute terraform init I have the following output : Initializing modules... - compute in modules\compute - private_network in modules\private_network - public_ip in modules\public_ip - route in modules\route Initializing the…
3
votes
1 answer

Enable Azure Monitor for existing Virtual machines using terraform

I am trying to enable azure monitor feature for existing virtual machines which checks for health and performance of the VM using terraform but I am not able to find the right documentation for the same. Can you help me for the same because I want…
3
votes
0 answers

Terraform Openstack Output parameter for CPU & Memory

Terrafomr OPENSTACK provider, I am unable to find the output parameter for CPU and memory Example: output "instanceip" value = "${openstack_compute_instance_v2.instance.network.0.fixed_ip_v4}" We get IP from above code here I need to get output…
kannan r
  • 31
  • 1
2
votes
0 answers

How to dynamically attach multiple volumes to multiple instances via terraform in openstack?

I have written a terraform module(v0.14) that can be used to provision multiple instances in openstack with the correct availability_zone,network-port, correct flavor, can create 1 local disk or 1 blockstorage_volume based on boolean input variables…
2
votes
1 answer

Reference to other module resource in Terraform

I have a hierarchy like this in my Terraform Cloud git project: ├── aws │   ├── flavors │   │   └── main.tf │   ├── main.tf │   ├── security-rules │   │   └── sec-rule1 │   │   └── main.tf │   └── vms │ │ └── vm1 │   │   └── main.tf └──…
2
votes
1 answer

How to add a non-root ssh-key on Openstack instance using Terraform?

I'm trying to create a Openstack instance using Terraform, and after that, I want to configure the user "ubuntu" with my ssh-key. So far I'm doing: terraform-instances.tf resource "openstack_compute_keypair_v2" "tf-keypair" { name =…
2
votes
1 answer

How to obtain public key from Openstack using Terraform and save it locally?

I'm trying to obtain a public key from Openstack (to later save it on local machine) using data source openstack_compute_keypair_v2 in Terraform: data "openstack_compute_keypair_v2" "app_public_key" { name = "app-key" } , but when I run…
2
votes
1 answer

How to create private subnet on OVH using Terraform?

How am I supposed to create a private network/subnet on OVH using Terraform? There is a common resource related to OpenStack (openstack_networking_subnet_v2) and ovh-specific (ovh_publiccloud_private_network_subnet) if you use ovh provider. I am…
1
vote
0 answers

Force volume recreation with Terraform Cloud (VCS)

I have a Terraform Cloud account connected to a git repo (a VCS-backed workspace), so I can only do VCS-driven run workflows. I have a VM with an attached volume and I would like to recreate the volume from scratch (yes, losing all data). I have…
1
vote
1 answer

Experiencing an error when try to output content of a csv file using terraform

I'm trying to use terraform variable data (CSV file) to create a resource group and the name of the resource group is added into the CSV file. I'm currently experiencing the below error │ Error: Unsupported attribute │ │ on testtf.tf line 11, in…
1
vote
2 answers

Output CSV file using terraform

I'm trying to use terraform variable data (CSV file) to create a resource group and the name of the resource group are added into the CSV file. I'm currently experiencing the below error. provider "azurerm" { features{} } locals { …
1
vote
1 answer

Terraform create list

I try to put all floating ips of my coturn servers in a ansible inventory. resource "local_file" "hosts_cfg" { content = templatefile("${path.module}/templates/hosts.tpl", { coturn =…
1
vote
2 answers

Terraform & OpenStack - Zero downtime flavor change

I’m using openstack_compute_instance_v2 to create instances in OpenStack. There is a lifecycle setting create_before_destroy = true present. And it works just fine in case I e.g. change volume size, where instances needs to be replaced. But. When I…
1
vote
1 answer

Terraform remote-exec on windows with ssh

I have setup a Windows server and installed ssh using Chocolatey. If I run this manually I have no problems connecting and running my commands. When I try to use Terraform to run my commands it connects successfully but doesn't run any commands. I…
user1842278
  • 1,039
  • 1
  • 12
  • 25
1
2 3