Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mysql/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ mysql_server_config:
- template: jinja
- source: salt://{{ tpldir }}/files/server.cnf
{% if os_family in ['Debian', 'Gentoo', 'RedHat'] %}
- context:
tpldir: {{ tpldir }}
- user: root
- group: root
- mode: 644
Expand All @@ -33,6 +35,8 @@ mysql_galera_config:
- template: jinja
- source: salt://{{ tpldir }}/files/galera.cnf
{% if os_family in ['Debian', 'Gentoo', 'RedHat'] %}
- context:
tpldir: {{ tpldir }}
- user: root
- group: root
- mode: 644
Expand All @@ -46,6 +50,8 @@ mysql_library_config:
- template: jinja
- source: salt://{{ tpldir }}/files/client.cnf
{% if os_family in ['Debian', 'Gentoo', 'RedHat'] %}
- context:
tpldir: {{ tpldir }}
- user: root
- group: root
- mode: 644
Expand All @@ -59,6 +65,8 @@ mysql_clients_config:
- template: jinja
- source: salt://{{ tpldir }}/files/mysql-clients.cnf
{% if os_family in ['Debian', 'Gentoo', 'RedHat'] %}
- context:
tpldir: {{ tpldir }}
- user: root
- group: root
- mode: 644
Expand All @@ -76,6 +84,8 @@ mysql_config:
{% else %}
- source: salt://{{ tpldir }}/files/my.cnf
{% endif %}
- context:
tpldir: {{ tpldir }}
{% if os_family in ['Debian', 'Gentoo', 'RedHat'] %}
- user: root
- group: root
Expand Down
4 changes: 2 additions & 2 deletions mysql/files/client.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{#-
===== FETCH DATA =====
-#}
{%- from "mysql/defaults.yaml" import rawmap with context -%}
{%- from "mysql/supported_sections.yaml" import supported_sections with context -%}
{%- from tpldir ~ "/defaults.yaml" import rawmap with context -%}
{%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
{%- set datamap = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:library:lookup')) -%}
{#-
===== COMBINE DATA =====
Expand Down
4 changes: 2 additions & 2 deletions mysql/files/galera.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{#-
===== FETCH DATA =====
-#}
{%- from "mysql/defaults.yaml" import rawmap with context -%}
{%- from "mysql/supported_sections.yaml" import supported_sections with context -%}
{%- from tpldir ~ "/defaults.yaml" import rawmap with context -%}
{%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
{%- set datamap = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:galera:lookup')) -%}
{#-
===== COMBINE DATA =====
Expand Down
4 changes: 2 additions & 2 deletions mysql/files/my-include.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{#-
===== FETCH DATA =====
-#}
{%- from "mysql/defaults.yaml" import rawmap with context -%}
{%- from "mysql/supported_sections.yaml" import supported_sections with context -%}
{%- from tpldir ~ "/defaults.yaml" import rawmap with context -%}
{%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
{%- set datamap = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:global:lookup')) -%}
{#-
===== COMBINE DATA =====
Expand Down
4 changes: 2 additions & 2 deletions mysql/files/my.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{#-
===== FETCH DATA =====
-#}
{%- from "mysql/defaults.yaml" import rawmap with context -%}
{%- from "mysql/supported_sections.yaml" import supported_sections with context -%}
{%- from tpldir ~ "/defaults.yaml" import rawmap with context -%}
{%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
{%- set datamap = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:server:lookup')) -%}
{#-
===== COMBINE DATA =====
Expand Down
4 changes: 2 additions & 2 deletions mysql/files/mysql-clients.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{#-
===== FETCH DATA =====
-#}
{%- from "mysql/defaults.yaml" import rawmap with context -%}
{%- from "mysql/supported_sections.yaml" import supported_sections with context -%}
{%- from tpldir ~ "/defaults.yaml" import rawmap with context -%}
{%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
{%- set datamap = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:clients:lookup')) -%}
{#-
===== COMBINE DATA =====
Expand Down
4 changes: 2 additions & 2 deletions mysql/files/server.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{#-
===== FETCH DATA =====
-#}
{%- from "mysql/defaults.yaml" import rawmap with context -%}
{%- from "mysql/supported_sections.yaml" import supported_sections with context -%}
{%- from tpldir ~ "/defaults.yaml" import rawmap with context -%}
{%- from tpldir ~ "/supported_sections.yaml" import supported_sections with context -%}
{%- set datamap = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:server:lookup')) -%}
{#-
===== COMBINE DATA =====
Expand Down