Paul Lecuq
1b59cdacdd
- bl module updated - borg state updated - config state updated - netbox state updated - nginx state updated - misc updates
36 lines
869 B
Plaintext
36 lines
869 B
Plaintext
---
|
|
{%- from "config/map.jinja" import config with context %}
|
|
config-dir:
|
|
file.directory:
|
|
- name: {{ config.install_dir }}
|
|
- user: root
|
|
- mode: "0755"
|
|
|
|
config-ini-create:
|
|
file.managed:
|
|
- name: {{ config.install_dir }}/{{ config.ini_filename }}
|
|
- user: root
|
|
- mode: "0755"
|
|
|
|
config-ini-content:
|
|
ini.options_present:
|
|
- name: {{ config.install_dir }}/{{ config.ini_filename }}
|
|
- separator: '='
|
|
- sections: {{ config.config }}
|
|
|
|
config-json-content:
|
|
file.managed:
|
|
- name: {{ config.install_dir }}/{{ config.json_filename }}
|
|
- source: salt://config/config.json.j2
|
|
- user: root
|
|
- mode: "0755"
|
|
- template: jinja
|
|
|
|
config-yaml-content:
|
|
file.managed:
|
|
- name: {{ config.install_dir }}/{{ config.yaml_filename }}
|
|
- source: salt://config/config.yml.j2
|
|
- user: root
|
|
- mode: "0755"
|
|
- template: jinja
|