Skip to content

Commit

Permalink
Introduce standardized mapping files
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Jun 18, 2018
1 parent 2537583 commit 841a4fd
Show file tree
Hide file tree
Showing 19 changed files with 433 additions and 468 deletions.
5 changes: 2 additions & 3 deletions mysql/client.sls
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
include:
- .config

{% from tpldir ~ "/defaults.yaml" import rawmap with context %}
{%- set mysql = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:lookup')) %}
{% from tpldir ~ "/map.jinja" import mysql with context %}
mysql:
pkg.installed:
- name: {{ mysql.client }}
- name: {{ mysql.clientpkg }}
3 changes: 1 addition & 2 deletions mysql/config.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% from tpldir ~ "/defaults.yaml" import rawmap with context %}
{%- set mysql = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:lookup')) %}
{% from tpldir ~ "/map.jinja" import mysql with context %}
{% set os_family = salt['grains.get']('os_family', None) %}
{% if "config_directory" in mysql %}
Expand Down
3 changes: 1 addition & 2 deletions mysql/database.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% from tpldir ~ "/defaults.yaml" import rawmap with context %}
{%- set mysql = salt['grains.filter_by'](rawmap, grain='os', merge=salt['pillar.get']('mysql:lookup')) %}
{% from tpldir ~ "/map.jinja" import mysql with context %}
{% set mysql_root_user = salt['pillar.get']('mysql:server:root_user', 'root') %}
{% set mysql_root_pass = salt['pillar.get']('mysql:server:root_password', salt['grains.get']('server_id')) %}
Expand Down
Loading

0 comments on commit 841a4fd

Please sign in to comment.