AlmaLinux / cloud-images

Packer templates and other tools for building AlmaLinux images for various cloud platforms.
MIT License
146 stars 48 forks source link

Update almalinux-9-gencloud.pkr.hcl | fix, ansible error - extra arguments at end of line #168

Closed maksimsamt closed 1 month ago

maksimsamt commented 4 months ago

Ansible error, example:

almalinux-9-gencloud-bios-x86_64: fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "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: keyword controlmaster extra arguments at end of line\r\n", "unreachable": true}
LKHN commented 4 months ago

@maksimsamt , Hi, We never face an issue on AlmaLinux OS. Could you share which OS did you face this issue?

LKHN commented 4 months ago

Only AlmaLinux OS 9 or OpenSSH >= 9.0 understand this flag. I have to put it another branch https://github.com/AlmaLinux/cloud-images/tree/scp_90 --scp-extra-args -O

maksimsamt commented 4 months ago

@maksimsamt , Hi, We never face an issue on AlmaLinux OS. Could you share which OS did you face this issue?

Build happens on: Fedora 39 (6.7.4-200.fc39.x86_64) Packer Ansible plugin v1.1.1 Packer v1.10.1 Ansible v2.16.2

LKHN commented 4 months ago

Thanks! I need to test it in Fedora 39 and AlmaLinux OS 9. If it works then will move to scp_90 branch. which is intended for modern systems.

LKHN commented 1 month ago

@maksimsamt Thanks a lot for bringing attention!

Closing it in favour of #176 which covers all image types.

maksimsamt commented 1 month ago

Can confirm that https://github.com/AlmaLinux/cloud-images/pull/176 changes and accordingly build process now correctly works on Fedora 40

LKHN commented 1 month ago

@maksimsamt Thanks a lot for confirming. I also tested other distros to make sure everyone can build images.

https://github.com/AlmaLinux/cloud-images/issues/172#issuecomment-2120971112