Skip to content
Snippets Groups Projects
Commit 1d3e2bb9 authored by Ross Perkins's avatar Ross Perkins Committed by Ross Perkins
Browse files

Added ability for SQL Schema sources to be templates

parent 5d74223c
Branches
Tags
No related merge requests found
...@@ -24,6 +24,10 @@ include: ...@@ -24,6 +24,10 @@ include:
file.managed: file.managed:
- name: /etc/mysql/{{ database }}.schema - name: /etc/mysql/{{ database }}.schema
- source: {{ salt['pillar.get'](['mysql', 'schema', database, 'source']|join(':')) }} - source: {{ salt['pillar.get'](['mysql', 'schema', database, 'source']|join(':')) }}
{%- set template_type = salt['pillar.get'](['mysql', 'schema', database, 'template']|join(':'), False) %}
{%- if template_type %}
- template: {{ template_type }}
{% endif %}
- user: {{ salt['pillar.get']('mysql:server:user', 'mysql') }} - user: {{ salt['pillar.get']('mysql:server:user', 'mysql') }}
- makedirs: True - makedirs: True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment