Skip to content
Snippets Groups Projects
Commit 09756a21 authored by Ryan Jones's avatar Ryan Jones
Browse files

automated creation and use of pub and private keys

parent 51676ff9
No related branches found
No related tags found
1 merge request!5Tester
resource "openstack_compute_keypair_v2" "test-keypair" { resource "openstack_compute_keypair_v2" "keypair" {
name = "my-keypair" name = "my-keypair"
public_key = "${file("~/.ssh/id_rsa.pub")}" public_key = "${file("~/.ssh/id_rsa.pub")}"
} }
...@@ -67,7 +67,7 @@ depends_on = ["openstack_networking_subnet_v2.dmzsubnet"] ...@@ -67,7 +67,7 @@ depends_on = ["openstack_networking_subnet_v2.dmzsubnet"]
name = "ohpc" name = "ohpc"
image_name = "${var.image}" image_name = "${var.image}"
flavor_name = "${var.flavor}" flavor_name = "${var.flavor}"
key_pair = "${openstack_compute_keypair_v2.openstack.key_name}" key_pair = "${openstack_compute_keypair_v2.keypair.name}"
security_groups = ["default"] security_groups = ["default"]
# defines the networks of the instance # defines the networks of the instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment