2021-04-02 00:22:15 +02:00
|
|
|
# -*- 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 %}
|
2021-04-03 13:34:28 +02:00
|
|
|
{%- from tplroot ~ "/macros.jinja" import config_file with context %}
|
2021-04-02 00:22:15 +02:00
|
|
|
|
|
|
|
{%- for name, template in nsd.get('config_files', {}).items() %}
|
2021-04-03 13:34:28 +02:00
|
|
|
{{ config_file(name, template) }}
|
|
|
|
{% endfor %}
|