Skip to content
Snippets Groups Projects
Commit 43c1b12f authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Remove keypair and private key from from openstack module

parent c30e3153
No related branches found
No related tags found
No related merge requests found
...@@ -17,9 +17,6 @@ source "openstack" "image" { ...@@ -17,9 +17,6 @@ source "openstack" "image" {
security_groups = var.security_groups security_groups = var.security_groups
ssh_username = var.ssh_username ssh_username = var.ssh_username
ssh_keypair_name = var.ssh_keypair_name
ssh_private_key_file = var.ssh_private_key_file
} }
build { build {
...@@ -34,14 +31,12 @@ build { ...@@ -34,14 +31,12 @@ build {
} }
provisioner "ansible" { provisioner "ansible" {
use_proxy = false use_proxy = false
ssh_authorized_key_file = "/home/ubuntu/.ssh/id_rsa.pub"
ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"] ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
playbook_file = "../CRI_XCBC/ood-packer.yaml" playbook_file = "../CRI_XCBC/ood-packer.yaml"
roles_path = "./ansible/roles" roles_path = "./ansible/roles"
inventory_file = "../CRI_XCBC/hosts" inventory_file = "../CRI_XCBC/hosts"
extra_arguments = [ extra_arguments = [
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'", "--extra-vars", "root_ssh_key='${var.root_ssh_key}'",
"--private-key=${var.ssh_private_key_file}",
"--user=centos", "--user=centos",
#"-vvvv" #"-vvvv"
] ]
......
...@@ -76,13 +76,3 @@ variable "ssh_username" { ...@@ -76,13 +76,3 @@ variable "ssh_username" {
default = "centos" default = "centos"
description = "The default username to use for SSH" 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"
}
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