forked from saltstack-formulas/mysql-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.example
38 lines (35 loc) · 857 Bytes
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
mysql:
server:
root_password: 'somepass'
bind-address: 127.0.0.1
port: 3306
user: mysql
# Manage databases
database:
- foo
- bar
# Manage users
user:
- name: frank
password: 'somepass'
host: localhost
databases:
- database: foo
grants: ['select', 'insert', 'update']
- database: bar
grants: ['all privileges']
- name: bob
password_hash: '*6C8989366EAF75BB670AD8EA7A7FC1176A95CEF4'
host: localhost
databases:
- database: foo
grants: ['all privileges']
- database: bar
grants: ['select', 'insert', 'update', 'delete']
# Override any names defined in map.jinja
lookup:
server: mysql-server
client: mysql-client
service: mysql-service
config: /etc/mysql/my.cnf
python: python-mysqldb