paulbsd-salt/states/config/init.sls
2020-07-10 00:58:55 +02:00

20 lines
450 B
Plaintext

---
{%- from "config/map.jinja" import config with context %}
config-dir:
file.directory:
- name: {{ config.install_dir }}
- user: root
- mode: "0755"
config-file:
file.managed:
- name: {{ config.install_dir }}/{{ config.filename }}
- user: root
- mode: "0755"
config-file-config:
ini.options_present:
- name: {{ config.install_dir }}/{{ config.filename }}
- separator: '='
- sections: {{ config.config }}