Skip to content
Snippets Groups Projects
Commit 976aea51 authored by Ryan Randles Jones's avatar Ryan Randles Jones
Browse files

added ssh creation

parent 107f9658
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,10 @@ variable "enable_dhcp" {default = true}
# variable for floating-ip
variable "public_network_name" {default = "bright-external-flat-externalnet"}
# variables for importing keypair
variable "keypair_name" {default = "os-gen-keypair"}
variable "ssh_public_key" {default = "~/.ssh/id_rsa.pub"}
......@@ -33,7 +37,10 @@ output "internal_network_id" {
value = "${module.cluster-network.internal_network_id}"
}
resource "openstack_compute_keypair_v2" "keypair" {
name = var.keypair_name
public_key = file(var.ssh_public_key)
}
module "floating-ip" {
source = "./floating-ip"
......
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