2015-03-26 17:50:32 +01:00
|
|
|
{% from "openssh/map.jinja" import openssh with context %}
|
|
|
|
|
|
|
|
ensure dig is available:
|
|
|
|
pkg.installed:
|
|
|
|
- name: {{ openssh.dig_pkg }}
|
2016-07-19 22:23:48 +02:00
|
|
|
- unless: which dig
|
2015-03-26 17:50:32 +01:00
|
|
|
|
|
|
|
manage ssh_known_hosts file:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ openssh.ssh_known_hosts }}
|
|
|
|
- source: salt://openssh/files/ssh_known_hosts
|
|
|
|
- template: jinja
|
|
|
|
- user: root
|
2016-04-18 17:46:10 +02:00
|
|
|
- group: {{ openssh.root_group }}
|
2015-03-26 17:50:32 +01:00
|
|
|
- mode: 644
|
|
|
|
- require:
|
|
|
|
- pkg: ensure dig is available
|