nsd-formula/nsd/config/config_files.sls
2021-04-18 23:51:49 +02:00

14 lines
511 B
Plaintext

# -*- coding: utf-8 -*-
# vim: ft=sls
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_package_install = tplroot ~ '.package.install' %}
{%- from tplroot ~ "/map.jinja" import mapdata as nsd with context %}
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
{%- from tplroot ~ "/macros.jinja" import config_file with context %}
{%- for name, template in nsd.get('config_files', {}).items() %}
{{ config_file(name, template) }}
{% endfor %}