test(pillar): add ssh-rsa Kitchen workaround on Fedora 36 [skip ci]

This commit is contained in:
Imran Iqbal
2022-04-11 18:24:55 +01:00
parent 16d6355d40
commit 24b29cd91c
2 changed files with 189 additions and 1 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ sshd_config:
{%- endif %}
{#- Need this on various platforms to avoid the `kitchen verify` failure as mentioned above; see: #}
{#- * https://gitlab.com/saltstack-formulas/infrastructure/salt-image-builder/-/commit/cb6781a2bba9 #}
{%- if grains.os in ["Arch", "OpenBSD", "Gentoo"] or grains.get("oscodename", "") in ["openSUSE Tumbleweed"] %}
{%- if grains.os in ["Arch", "OpenBSD", "Gentoo"]
or grains.get("oscodename", "") in ["openSUSE Tumbleweed"]
or grains.get("osfinger", "") in ["Fedora Linux-36"] %}
PubkeyAcceptedAlgorithms: "+ssh-rsa"
{%- endif %}