Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CalvinHartwell/5bb9fd2df09e5b6d1b3c6a622609c1da to your computer and use it in GitHub Desktop.
Save CalvinHartwell/5bb9fd2df09e5b6d1b3c6a622609c1da to your computer and use it in GitHub Desktop.
terraform-stc-bluvalt-openstack-example-vm-provision
provider "openstack" {
user_name = "calvinh"
tenant_name = "canonical_30039"
tenant_id = "6a74f3b9a17847588d9fdee581cbb01a"
password = <password>
auth_url = "https://api-jed1-vdc.bluvalt.com/identity/v3"
region = "RegionOne"
user_domain_name ="jed1"
project_domain_name = "jed1"
}
# Create a web server
resource "openstack_compute_instance_v2" "test-server" {
name = "tf_test_instance"
image_name = "Ubuntu-18.04-LTS"
flavor_name = "R1-Network-2"
key_pair = "calvinh-ws"
security_groups = ["public"]
network {
uuid = "e637f311-cef0-4eb4-b42d-7d9c3a2b1141"
}
}
@icy
Copy link

icy commented Sep 16, 2021

fyi they also have a good tut now: https://kb.bluvalt.com/howto/using-terraform/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment