2016-09-25 17:29:52 +02:00
|
|
|
include:
|
|
|
|
- gnuviechadmin.base
|
|
|
|
- gnuviechadmin.celery
|
|
|
|
|
|
|
|
gvamysql-mysql-user:
|
|
|
|
mysql_user.present:
|
|
|
|
- name: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_user', 'gvamysql') }}
|
|
|
|
- host: '%'
|
2020-03-04 00:10:16 +01:00
|
|
|
- password: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_password') }}
|
2016-09-25 17:29:52 +02:00
|
|
|
|
|
|
|
gvamysql-grants-all-dbs:
|
|
|
|
mysql_grants.present:
|
|
|
|
- grant: ALL PRIVILEGES
|
|
|
|
- database: '*.*'
|
|
|
|
- grant_option: True
|
|
|
|
- user: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_user', 'gvamysql') }}
|
2020-03-04 00:10:16 +01:00
|
|
|
- password: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_password') }}
|
2016-09-25 17:29:52 +02:00
|
|
|
- host: '%'
|
|
|
|
- require:
|
|
|
|
- mysql_user: gvamysql-mysql-user
|
|
|
|
|
|
|
|
gvamysql-packages:
|
|
|
|
pkg.installed:
|
|
|
|
- pkgs:
|
|
|
|
- libmariadbd-dev
|
|
|
|
- libmysqlclient-dev
|
|
|
|
- require_in:
|
|
|
|
- pkg: gnuviechadmin-packages
|