Skip to content

Commit d9bbd6f

Browse files
committed
Expose image_build_ssh_username for Packer SSH
1 parent 8fd625e commit d9bbd6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roles/image_build/templates/builder.pkrvars.hcl.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
repo_root = "{{ playbook_dir }}/vendor/stackhpc/ansible-slurm-appliance"
22
environment_root = "{{ playbook_dir }}/image_build"
33
networks = ["{{ image_build_network_id }}"]
4+
{% if image_build_ssh_username is defined %}
5+
ssh_username = "{{ image_build_ssh_username }}"
6+
{% endif %}
47
{% if image_build_ssh_bastion_host is defined %}
58
ssh_bastion_host = "{{ image_build_ssh_bastion_host }}"
69
{% endif %}

0 commit comments

Comments
 (0)