Created
March 25, 2019 19:00
-
-
Save CalvinHartwell/5bb9fd2df09e5b6d1b3c6a622609c1da to your computer and use it in GitHub Desktop.
terraform-stc-bluvalt-openstack-example-vm-provision
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
terraform init
terraform plan
terraform apply
...