Changed to finding template by id instead of name

This commit is contained in:
2026-02-02 13:58:18 -05:00
parent c12bfa6bad
commit 6074f5e41e
4 changed files with 16 additions and 9 deletions

6
Jenkinsfile vendored
View File

@@ -42,6 +42,8 @@ pipeline {
environment {
ANSIBLE_HOST_KEY_CHECKING = 'False'
ANSIBLE_FORCE_COLOR = 'true'
VM_TEMPLATE_ID = '133'
LXC_TEMPLATE_ID = '109'
}
stages {
@@ -87,7 +89,9 @@ pipeline {
-e "target_node=${params.TARGET_NODE}" \
-e "vm_hostname=${params.HOSTNAME}" \
-e "cpu_cores=${params.CPU_CORES}" \
-e "ram_gb=${params.RAM_GB}"
-e "ram_gb=${params.RAM_GB}" \
-e "vm_template_id=${VM_TEMPLATE_ID}" \
-e "lxc_template_id=${LXC_TEMPLATE_ID}"
"""
}
}