2023-11-13 09:33:28 -05:00
|
|
|
{#
|
2023-11-13 13:18:06 -05:00
|
|
|
SPDX-FileCopyrightText: 2022 unman <unman@thirdeyesecurity.org>
|
2024-03-18 11:29:01 -04:00
|
|
|
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
2023-11-13 09:33:28 -05:00
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
#}
|
|
|
|
|
|
|
|
{% if grains['nodename'] != 'dom0' -%}
|
|
|
|
|
|
|
|
include:
|
2024-03-18 11:29:01 -04:00
|
|
|
- utils.tools.common.update
|
2023-11-13 09:33:28 -05:00
|
|
|
- sys-ssh-agent.install-client
|
|
|
|
|
|
|
|
{% set pkg = {
|
|
|
|
'Debian': {
|
|
|
|
'pkg': ['sshfs'],
|
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'pkg': ['fuse-sshfs'],
|
|
|
|
},
|
|
|
|
}.get(grains.os_family) -%}
|
|
|
|
|
2023-12-31 01:50:03 -05:00
|
|
|
"{{ slsdotpath }}-client-installed-os-specific":
|
2023-11-13 09:33:28 -05:00
|
|
|
pkg.installed:
|
2024-03-18 11:29:01 -04:00
|
|
|
- require:
|
|
|
|
- sls: utils.tools.common.update
|
2023-11-13 09:33:28 -05:00
|
|
|
- install_recommends: False
|
|
|
|
- skip_suggestions: True
|
|
|
|
- pkgs: {{ pkg.pkg|sequence|yaml }}
|
|
|
|
|
|
|
|
"{{ slsdotpath }}-client-systemd":
|
|
|
|
file.recurse:
|
|
|
|
- name: /usr/lib/systemd/system/
|
|
|
|
- source: salt://{{ slsdotpath }}/files/client/systemd/
|
|
|
|
- dir_mode: '0755'
|
|
|
|
- file_mode: '0644'
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
"{{ slsdotpath }}-client-systemd-start-qubes-ssh-forwarder.socket":
|
|
|
|
service.enabled:
|
|
|
|
- name: qubes-ssh-forwarder.socket
|
|
|
|
|
|
|
|
{% endif -%}
|