20 lines
450 B
Plaintext
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 }}
|