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

update

parent b6701101
No related branches found
No related tags found
No related merge requests found
resource "openstack_compute_keypair_v2" "ohpc-keypair" {
name = "my-keypair"
}
# creates dmznet
resource "openstack_networking_network_v2" "dmznet" {
name = "dmznet"
......@@ -57,7 +53,7 @@ depends_on = ["openstack_networking_subnet_v2.dmzsubnet"]
name = "ohpc"
image_name = "${var.image}"
flavor_name = "${var.flavor}"
key_pair = "${openstack_compute_keypair_v2.ohpc-keypair.name}"
key_pair = "${var.ssh_key_private}"
security_groups = ["default"]
# defines the networks of the instance
......
variable "image" {
default = "CentOS-7-x86_64-GenericCloud-1905"
}
variable "flavor" {
default = "m1.medium"
}
variable "pool" {
default = "bright-external-flat-externalnet"
}
variable "ssh_key_private" {
default = "~/.ssh/id_rsa"
description = "Path to the SSH public key for accessing cloud instances. Used for creating AWS keypair."
}
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