Skip to content

Commit

Permalink
fix(known_hosts): dig package does not install on Arch
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
baby-gnu committed Jul 21, 2020
1 parent 644e616 commit 0b667cb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion openssh/known_hosts.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
ensure dig is available:
pkg.installed:
- name: {{ openssh.dig_pkg }}
- unless: which dig
manage ssh_known_hosts file:
file.managed:
Expand Down
2 changes: 1 addition & 1 deletion openssh/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Arch:
server: openssh
client: openssh
service: sshd
dig_pkg: bind-tools
dig_pkg: bind
sshd_config:
Subsystem: sftp /usr/lib/ssh/sftp-server

Expand Down

0 comments on commit 0b667cb

Please sign in to comment.