mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 05:38:20 +01:00
dcb70e5181
closes #123
18 lines
439 B
Plaintext
18 lines
439 B
Plaintext
{% 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 %}
|