Commit 5a6cdf5a authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

Update main.tf

parent caa38658
# creates public and private keypair
resource "openstack_compute_keypair_v2" "test-keypair" {
name = "my-keypair"
}
# creates dmznet
resource "openstack_networking_network_v2" "terraform" {
name = "dmznet"
......@@ -74,7 +79,7 @@ resource "openstack_compute_instance_v2" "terraform" {
name = "terraform"
image_name = "${var.image}"
flavor_name = "${var.flavor}"
key_pair = "${var.key_pair}"
key_pair = "${openstack_compute_keypair_v2.test-keypair.name}"
security_groups = ["${openstack_networking_secgroup_v2.terraform.name}"]
# defines the instance id using info from datasources.tf
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment