2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "config/map.jinja" import config with context %}
|
|
|
|
config-dir:
|
|
|
|
file.directory:
|
|
|
|
- name: {{ config.install_dir }}
|
|
|
|
- user: root
|
|
|
|
- mode: "0755"
|
|
|
|
|
2022-01-25 00:16:58 +01:00
|
|
|
config-ini-create:
|
2020-07-10 00:58:55 +02:00
|
|
|
file.managed:
|
2022-01-25 00:16:58 +01:00
|
|
|
- name: {{ config.install_dir }}/{{ config.ini_filename }}
|
2020-07-10 00:58:55 +02:00
|
|
|
- user: root
|
|
|
|
- mode: "0755"
|
|
|
|
|
2022-01-25 00:16:58 +01:00
|
|
|
config-ini-content:
|
2020-07-10 00:58:55 +02:00
|
|
|
ini.options_present:
|
2022-01-25 00:16:58 +01:00
|
|
|
- name: {{ config.install_dir }}/{{ config.ini_filename }}
|
2020-07-10 00:58:55 +02:00
|
|
|
- separator: '='
|
|
|
|
- sections: {{ config.config }}
|
2022-01-25 00:16:58 +01:00
|
|
|
|
|
|
|
config-json-content:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ config.install_dir }}/{{ config.json_filename }}
|
|
|
|
- source: salt://config/config.json.j2
|
|
|
|
- user: root
|
|
|
|
- mode: "0755"
|
|
|
|
- template: jinja
|