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

Merge branch 'feat-build-extra-vars' into 'feat-hpc-factory'

Feat build extra vars

See merge request !168
parents 91c02c78 fd96d27a
No related branches found
No related tags found
2 merge requests!168Feat build extra vars,!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
Pipeline #13067 passed with stage
in 25 minutes and 25 seconds
...@@ -61,5 +61,8 @@ build { ...@@ -61,5 +61,8 @@ build {
groups = ["compute"] groups = ["compute"]
ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"] ansible_env_vars = ["ANSIBLE_HOST_KEY_CHECKING=False"]
playbook_file = "./CRI_XCBC/compute-packer.yaml" playbook_file = "./CRI_XCBC/compute-packer.yaml"
extra_arguments = [
"--extra-vars", "${var.extra_vars}"
]
} }
} }
...@@ -88,4 +88,10 @@ variable "volume_size" { ...@@ -88,4 +88,10 @@ variable "volume_size" {
type = number type = number
default = 20 default = 20
description = "The default volume size for building iamge" description = "The default volume size for building iamge"
} }
\ No newline at end of file
variable "extra_vars" {
type = string
default = ""
description = "Extra vars to pass to ansible playbook command"
}
...@@ -53,5 +53,8 @@ build { ...@@ -53,5 +53,8 @@ build {
groups = ["ood", "knightly"] groups = ["ood", "knightly"]
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"
extra_arguments = [
"--extra-vars", "${var.extra_vars}"
]
} }
} }
...@@ -87,4 +87,10 @@ variable "volume_size" { ...@@ -87,4 +87,10 @@ variable "volume_size" {
type = number type = number
default = 20 default = 20
description = "The default volume size for building iamge" description = "The default volume size for building iamge"
} }
\ No newline at end of file
variable "extra_vars" {
type = string
default = ""
description = "Extra vars to pass to ansible playbook command"
}
...@@ -58,5 +58,8 @@ build { ...@@ -58,5 +58,8 @@ build {
"ANSIBLE_FORCE_COLOR=true" "ANSIBLE_FORCE_COLOR=true"
] ]
playbook_file = "./CRI_XCBC/proxy.yaml" playbook_file = "./CRI_XCBC/proxy.yaml"
extra_arguments = [
"--extra-vars", "${var.extra_vars}"
]
} }
} }
...@@ -106,3 +106,8 @@ variable "ANSIBLE_VERBOSITY" { ...@@ -106,3 +106,8 @@ variable "ANSIBLE_VERBOSITY" {
description = "to increase verbosity - 0|1|2|3|4" description = "to increase verbosity - 0|1|2|3|4"
} }
variable "extra_vars" {
type = string
default = ""
description = "Extra vars to pass to ansible playbook command"
}
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