Browse Source

fix(known_hosts): dig package does not install on Arch

The conditionnal on `ensure dig is available` does not work on Arch
since the `which` command does not exists. As the `pkg.installed`
state is idempotent, we don't need an extra check which depends on the
environment.

The `dig` utility is provided by `bind` on Arch and no more by
`bind-tools`.
tags/v1.2.1
Daniel Dehennin 4 years ago
parent
commit
0b667cbcf5
2 changed files with 1 additions and 2 deletions
  1. +0
    -1
      openssh/known_hosts.sls
  2. +1
    -1
      openssh/osfamilymap.yaml

+ 0
- 1
openssh/known_hosts.sls View File

ensure dig is available: ensure dig is available:
pkg.installed: pkg.installed:
- name: {{ openssh.dig_pkg }} - name: {{ openssh.dig_pkg }}
- unless: which dig


manage ssh_known_hosts file: manage ssh_known_hosts file:
file.managed: file.managed:

+ 1
- 1
openssh/osfamilymap.yaml View File

server: openssh server: openssh
client: openssh client: openssh
service: sshd service: sshd
dig_pkg: bind-tools
dig_pkg: bind
sshd_config: sshd_config:
Subsystem: sftp /usr/lib/ssh/sftp-server Subsystem: sftp /usr/lib/ssh/sftp-server



Loading…
Cancel
Save