Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save icy/ed45deb06184b4d75f99c3802e9ca730 to your computer and use it in GitHub Desktop.
Save icy/ed45deb06184b4d75f99c3802e9ca730 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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment