Merge pull request #124 from arthurlogilab/123-add-ini-version-of-config

[openssh/config_ini] initial version of config_ini which uses ini state
This commit is contained in:
Niels Abspoel authored and GitHub committed 2018-03-17 21:35:30 +01:00
commit b93448b5e6
2 files changed
+27

No files matched your search

+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 %}