Merge pull request #14892 from Security-Onion-Solutions/vlb2

match user soqemussh, allow user additions to persist, for ssh config.
This commit is contained in:
Josh Patterson
2025-07-30 09:55:56 -04:00
committed by GitHub
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 IdentityFile /etc/ssh/auth_keys/soqemussh/id_ed25519

View File

@@ -16,10 +16,17 @@
{% if GLOBALS.is_manager %} {% if GLOBALS.is_manager %}
qemu_ssh_client_config: root_ssh_config:
file.managed: file.touch:
- name: /root/.ssh/config - 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 - source: salt://libvirt/ssh/files/config
- prepend_if_not_found: True
{% endif %} {% endif %}