From 69a7960bb73195188a7e111974ecc2ca354133d4 Mon Sep 17 00:00:00 2001 From: Eesaan Atluri <eesaanatluri@gmail.com> Date: Tue, 16 Aug 2022 03:10:12 -0500 Subject: [PATCH] Add ssh related var defs to variables.pkr.hcl --- openstack/variables.pkr.hcl | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/openstack/variables.pkr.hcl b/openstack/variables.pkr.hcl index 454bdc5..fe701f0 100644 --- a/openstack/variables.pkr.hcl +++ b/openstack/variables.pkr.hcl @@ -25,12 +25,6 @@ variable "flavor" { description = "The name of the flavor to use" } -variable "ssh_username" { - type = string - default = "centos" - description = "The default username to use for SSH" -} - variable "floating_ip_network" { type = string description = "floating ip network to use with (temporary) ip assignmnet to a vm" @@ -46,3 +40,18 @@ variable "security_groups" { default = [] description = "A list of security groups to add - you should make sure ssh access is open to the machine" } +variable "ssh_username" { + type = string + default = "centos" + description = "The default username to use for SSH" +} + +variable "ssh_keypair_name" { + type = string + description = "SSH keypair to use from OS project" +} + +variable "ssh_private_key_file" { + type = string + description = "Private key file" +} -- GitLab