Skip to content
Snippets Groups Projects

Feat cluster images

Compare and
2 files
+ 79
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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"
 
}
}
}
Loading