Skip to content
Snippets Groups Projects

Feat remove keypair and private key

3 files
+ 0
24
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -17,9 +17,6 @@ source "openstack" "image" {
security_groups = var.security_groups
ssh_username = var.ssh_username
ssh_keypair_name = var.ssh_keypair_name
ssh_private_key_file = var.ssh_private_key_file
}
build {
@@ -34,16 +31,9 @@ build {
}
provisioner "ansible" {
use_proxy = false
ssh_authorized_key_file = "/home/ubuntu/.ssh/id_rsa.pub"
ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
playbook_file = "../CRI_XCBC/ood-packer.yaml"
roles_path = "./ansible/roles"
inventory_file = "../CRI_XCBC/hosts"
extra_arguments = [
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'",
"--private-key=${var.ssh_private_key_file}",
"--user=centos",
#"-vvvv"
]
}
}
Loading