gvasalt/states/gnuviechadmin/gvamysql.sls
Jan Dittberner 7381b5bfd8 Implement proper provisioning for gvaldap
- merge improvements from the internal saltstack repository
- define dummy secrets in the pillars
- use systemd to setup the gvaldap celery worker
2020-03-04 00:10:16 +01:00

28 lines
791 B
Text

include:
- gnuviechadmin.base
- gnuviechadmin.celery
gvamysql-mysql-user:
mysql_user.present:
- name: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_user', 'gvamysql') }}
- host: '%'
- password: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_password') }}
gvamysql-grants-all-dbs:
mysql_grants.present:
- grant: ALL PRIVILEGES
- database: '*.*'
- grant_option: True
- user: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_user', 'gvamysql') }}
- password: {{ salt['pillar.get']('gnuviechadmin:mysql_admin_password') }}
- host: '%'
- require:
- mysql_user: gvamysql-mysql-user
gvamysql-packages:
pkg.installed:
- pkgs:
- libmariadbd-dev
- libmysqlclient-dev
- require_in:
- pkg: gnuviechadmin-packages