Fix: Add Ansible user param to OpenStack templates
The Ansible provisioner in OpenStack templates was missing the 'user'
parameter, causing Ansible to default to the wrong user account when
connecting to instances. This resulted in SCP failures with errors
like:
scp: dest open '~runner/.ansible/tmp/...': No such file or directory
Root cause: During the HCL2 conversion (commit
6e2fdc9), AWS
templates were created with 'user = "${var.ssh_user}"' but OpenStack
templates were not. This was an oversight that went undetected.
This fix adds the 'user' parameter to match the AWS template pattern,
ensuring Ansible uses the correct SSH user (ubuntu/centos/cloud-user)
as defined in the vars files.
Templates updated:
- builder.pkr.hcl
- docker.pkr.hcl
- devstack.pkr.hcl
- devstack-pre-pip-yoga.pkr.hcl
- windows-builder.pkr.hcl
Backward compatibility: This change is fully backward compatible as:
1. The ssh_user variable already exists in all vars files
2. AWS templates already use this pattern successfully
3. No existing Jenkins jobs are affected (they already work)
Change-Id: I985e8a4e8742b3b04ec024c6799bcc5feb908098
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>