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

Add compute playbook in gpu

parent 30431303
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,20 @@ source "openstack" "image" { ...@@ -18,6 +18,20 @@ source "openstack" "image" {
build { build {
sources = ["source.openstack.image"] sources = ["source.openstack.image"]
provisioner "ansible" {
groups = ["compute"]
playbook_file = "./ansible/compute.yml"
ansible_env_vars = [
"ANSIBLE_SSH_ARGS='-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=ssh-rsa'",
"ANSIBLE_HOST_KEY_CHECKING=False"
]
roles_path = "./ansible/roles"
extra_arguments = [
"--scp-extra-args", "'-O'",
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
]
}
provisioner "ansible" { provisioner "ansible" {
groups = ["gpu"] groups = ["gpu"]
playbook_file = "./ansible/gpu.yml" playbook_file = "./ansible/gpu.yml"
...@@ -31,4 +45,10 @@ build { ...@@ -31,4 +45,10 @@ build {
"--extra-vars", "root_ssh_key='${var.root_ssh_key}'" "--extra-vars", "root_ssh_key='${var.root_ssh_key}'"
] ]
} }
provisioner "ansible" {
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