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

Add ssh username to ansible provisioner

parent d93ce703
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ build {
sources = ["source.openstack.image"]
provisioner "ansible" {
user = var.ssh_username
groups = ["compute"]
playbook_file = "./ansible/compute.yml"
ansible_env_vars = [
......@@ -35,6 +36,7 @@ build {
]
}
provisioner "ansible" {
user = var.ssh_username
use_proxy = false
groups = ["compute"]
playbook_file = "./CRI_XCBC/compute-packer.yaml"
......
......@@ -19,6 +19,7 @@ build {
sources = ["source.openstack.image"]
provisioner "ansible" {
user = var.ssh_username
groups = ["compute"]
playbook_file = "./ansible/compute.yml"
ansible_env_vars = [
......@@ -33,6 +34,7 @@ build {
}
provisioner "ansible" {
user = var.ssh_username
groups = ["gpu"]
playbook_file = "./ansible/gpu.yml"
ansible_env_vars = [
......@@ -46,6 +48,7 @@ build {
}
provisioner "ansible" {
user = var.ssh_username
use_proxy = false
groups = ["compute"]
playbook_file = "./CRI_XCBC/compute-packer.yaml"
......
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