Skip to content

Commit cce41b2

Browse files
committed
use extra vars to override concrete environment in packer
1 parent 9c15764 commit cce41b2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

environments/common/inventory/group_vars/builder/defaults.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ block_devices_mount_state: present
1212
basic_users_manage_homedir: false
1313
grafana_state: stopped # as it tries to listen on the "real" grafana node
1414
grafana_datasources: [] # as grafana won't be up - NB also dashboards are downloaded but not imported
15-
openhpc_slurm_partitions: [] # as no compute nodes will be in play, but partition definition might exist in inventory

packer/openstack.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ build {
9797
groups = concat(["builder"], split("-", "${source.name}"))
9898
keep_inventory_file = true # for debugging
9999
use_proxy = false # see https://www.packer.io/docs/provisioners/ansible#troubleshooting
100-
extra_arguments = ["--limit", "builder", "-i", "./ansible-inventory.sh", "-vv"]
100+
extra_arguments = ["--limit", "builder", "-i", "./ansible-inventory.sh", "-vv", "-e", "@extra_vars.yml"]
101101
}
102102

103103
post-processor "manifest" {

0 commit comments

Comments
 (0)