Fix: Remove unwanted extra args 95/71895/2 v0.14.1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 4 Jul 2023 07:38:19 +0000 (17:38 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 4 Jul 2023 12:00:40 +0000 (22:00 +1000)
commit09cb3bcf48185afdc5af0a548be904491ae215de
tree487e8906796eeae48ee5655a439816bc3186fe36
parent626eb9c0fbfd8cbc8115aacfa21ef07f55695d54
Fix: Remove unwanted extra args

RSA/SHA-1 was deprecated since the OpenSSH release 8.8.
This causes builds with latest version of packer to fail with the
below error:

Error:

Data could not be sent to remote host "127.0.0.1". Make sure this
host can be reached over ssh: command-line: line 0: Bad
configuration option: pubkeyacceptedalgorithms.

Add workaroud and pass required HostKeyAlgorithms through ssh extra
argumements. Testing with cloud builds and since we are using multiple
flavors the only options required are "IdentitiesOnly=yes"
and "HostKeyAlgorithms=+ssh-rsa".

Issue: RELENG-4764
Ref: https://github.com/hashicorp/packer-plugin-ansible/issues/69
Change-Id: I80ff152d5153d739d6586c217fbc392e8be80f2a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
releasenotes/notes/fix-templates-ssh-hostkeyalgos-3b1088d7187e0ec9.yaml [new file with mode: 0644]
templates/builder-aws.pkr.hcl
templates/builder.pkr.hcl
templates/devstack-pre-pip-yoga.pkr.hcl
templates/devstack.pkr.hcl
templates/docker-aws.pkr.hcl
templates/docker.pkr.hcl
templates/windows-builder.pkr.hcl