mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Implement bind:config:tmpl Pillar key mentioned in pillar.example
This commit is contained in:
parent
1adf5f196b
commit
02141df8a8
1 changed files with 4 additions and 0 deletions
|
@ -41,7 +41,11 @@ named_directory:
|
|||
bind_config:
|
||||
file.managed:
|
||||
- name: {{ map.config }}
|
||||
{%- if salt['pillar.get']('bind:config:tmpl', False) %}
|
||||
- source: {{ salt['pillar.get']('bind:config:tmpl') }}
|
||||
{%- else %}
|
||||
- source: 'salt://{{ map.config_source_dir }}/named.conf'
|
||||
{%- endif %}
|
||||
- template: jinja
|
||||
- user: {{ salt['pillar.get']('bind:config:user', map.user) }}
|
||||
- group: {{ salt['pillar.get']('bind:config:group', map.group) }}
|
||||
|
|
Loading…
Add table
Reference in a new issue