mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 03:28:09 +01:00
18 lines
450 B
Plaintext
18 lines
450 B
Plaintext
{% from "openssh/map.jinja" import openssh with context %}
|
|
|
|
ensure dig is available:
|
|
pkg.installed:
|
|
- name: {{ openssh.dig_pkg }}
|
|
- unless: which dig
|
|
|
|
manage ssh_known_hosts file:
|
|
file.managed:
|
|
- name: {{ openssh.ssh_known_hosts }}
|
|
- source: salt://openssh/files/ssh_known_hosts
|
|
- template: jinja
|
|
- user: root
|
|
- group: {{ openssh.ssh_config_group }}
|
|
- mode: 644
|
|
- require:
|
|
- pkg: ensure dig is available
|