match user soqemussh for ssh config. allow for user edits to not be overwritten in ssh config.

This commit is contained in:
Josh Patterson
2025-07-30 09:44:58 -04:00
parent a0f9d5dc61
commit c98042fa80
2 changed files with 10 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
Host *
Match user soqemussh
IdentityFile /etc/ssh/auth_keys/soqemussh/id_ed25519

View File

@@ -16,10 +16,17 @@
{% if GLOBALS.is_manager %}
qemu_ssh_client_config:
file.managed:
root_ssh_config:
file.touch:
- name: /root/.ssh/config
qemu_ssh_client_config:
file.blockreplace:
- name: /root/.ssh/config
- marker_start: "# START of block managed by Salt - soqemussh config"
- marker_end: "# END of block managed by Salt - soqemussh config"
- source: salt://libvirt/ssh/files/config
- prepend_if_not_found: True
{% endif %}