fix: client install the ssh-agent client packages

The client should install the agent client packages and not the
opposite. The way it was, it would not be possible to include the agent
client packages to the ssh client, as it would create a recursive loop.
This commit is contained in:
Ben Grande 2024-01-21 22:04:34 +01:00
parent 97c644a09c
commit 3e6ba8ff82
3 changed files with 23 additions and 4 deletions

View File

@ -7,6 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% if grains['nodename'] != 'dom0' -%} {% if grains['nodename'] != 'dom0' -%}
include: include:
- sys-ssh-agent.install-client
- dotfiles.copy-x11 - dotfiles.copy-x11
- dotfiles.copy-ssh - dotfiles.copy-ssh

View File

@ -7,7 +7,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% if grains['nodename'] != 'dom0' -%} {% if grains['nodename'] != 'dom0' -%}
include: include:
- ssh.install
- dev.home-cleanup - dev.home-cleanup
- dotfiles.copy-sh - dotfiles.copy-sh
- dotfiles.copy-ssh - dotfiles.copy-ssh
@ -23,14 +22,16 @@ include:
- install_recommends: False - install_recommends: False
- skip_suggestions: True - skip_suggestions: True
- pkgs: - pkgs:
- qubes-core-agent-networking
- ca-certificates
- socat - socat
{% set pkg = { {% set pkg = {
'Debian': { 'Debian': {
'pkg': ['procps'], 'pkg': ['procps', 'openssh-client'],
}, },
'RedHat': { 'RedHat': {
'pkg': ['procps-ng'], 'pkg': ['procps-ng', 'openssh-clients'],
}, },
}.get(grains.os_family) -%} }.get(grains.os_family) -%}

View File

@ -7,7 +7,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{% if grains['nodename'] != 'dom0' -%} {% if grains['nodename'] != 'dom0' -%}
include: include:
- ssh.install
- dev.home-cleanup - dev.home-cleanup
- dotfiles.copy-sh - dotfiles.copy-sh
- dotfiles.copy-ssh - dotfiles.copy-ssh
@ -23,8 +22,26 @@ include:
- install_recommends: False - install_recommends: False
- skip_suggestions: True - skip_suggestions: True
- pkgs: - pkgs:
- qubes-core-agent-networking
- ca-certificates
- socat - socat
{% set pkg = {
'Debian': {
'pkg': ['openssh-client'],
},
'RedHat': {
'pkg': ['openssh-clients'],
},
}.get(grains.os_family) -%}
"{{ slsdotpath }}-installed-os-specific":
pkg.installed:
- refresh: True
- install_recommends: False
- skip_suggestions: True
- pkgs: {{ pkg.pkg|sequence|yaml }}
"{{ slsdotpath }}-agent-bin-dir": "{{ slsdotpath }}-agent-bin-dir":
file.recurse: file.recurse:
- source: salt://{{ slsdotpath }}/files/server/bin - source: salt://{{ slsdotpath }}/files/server/bin