test(pillar): add `ssh-rsa` Kitchen workaround on Arch Linux [skip ci]

Need this on Arch Linux to avoid the `kitchen verify` failure; see:

* https://gitlab.com/saltstack-formulas/infrastructure/salt-image-builder/-/commit/cb6781a2bba9
This commit is contained in:
Imran Iqbal 2021-10-22 11:25:41 +01:00
parent 9ff22d00a1
commit ecd62e4507
No known key found for this signature in database
GPG Key ID: 6D8629439D2B7819
2 changed files with 6 additions and 0 deletions

View File

@ -180,6 +180,7 @@ values:
AcceptEnv: LANG LC_*
ChallengeResponseAuthentication: 'no'
PrintMotd: 'no'
PubkeyAcceptedAlgorithms: "+ssh-rsa"
Subsystem: sftp /usr/lib/openssh/sftp-server
UsePAM: 'yes'
X11Forwarding: 'yes'

View File

@ -25,6 +25,11 @@ sshd_config:
{%- if grains.os != "OpenBSD" %}
UsePAM: 'yes'
{%- endif %}
{#- Need this on Arch Linux to avoid the `kitchen verify` failure as mentioned above; see: #}
{#- * https://gitlab.com/saltstack-formulas/infrastructure/salt-image-builder/-/commit/cb6781a2bba9 #}
{%- if grains.os == "Arch" %}
PubkeyAcceptedAlgorithms: "+ssh-rsa"
{%- endif %}
ssh_config:
Hosts: