[openssh/config_ini] initial version of config_ini which uses ini state

closes #123
This commit is contained in:
Arthur Lutz
2018-02-15 17:43:13 +01:00
parent 73727bc218
commit dcb70e5181
2 changed files with 27 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
{% from "openssh/map.jinja" import openssh with context %}
include:
- openssh
{% if salt['pillar.get']('sshd_config', False) %}
sshd_config-with-ini:
ini.options_present:
- name: {{ openssh.sshd_config }}
- separator: ' '
- watch_in:
- service: {{ openssh.service }}
- sections:
{%- for k,v in salt['pillar.get']('sshd_config',{}).items() %}
{{ k }}: '{{ v }}'
{%- endfor %}
{% endif %}