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

added keypair module

parent f4dc14bc
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,11 @@ variable "enable_dhcp" {default = true}
# variable for floating-ip
variable "public_network_name" {default = "bright-external-flat-externalnet"}
# variables for importing keypair
# variables for keypair module
variable "keypair_name" {default = "os-gen-keypair"}
variable "ssh_public_key" {default = "~/.ssh/id_rsa.pub"}
module "dmz-network" {
source = "./external-network"
# Default name var is in the module main file
......@@ -50,4 +49,13 @@ output "floating_ip_ood" {
value = "${module.floating-ip.ood_address}"
}
module "keypair" {
source "./key-pair"
keypair_name = var.keypair_name
ssh_public_key = var.ssh_public_key
output "keypair_name" {
value = "${module.keypair.keypair_name}"
}
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