forked from saltstack-formulas/mysql-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example
61 lines (58 loc) · 1.48 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
mysql:
server:
# root_password: False - to have root@localhost without password
root_password: 'somepass'
user: mysql
# my.cnf sections changes
mysqld:
bind-address: 0.0.0.0
port: 3307
log_bin: /var/log/mysql/mysql-bin.log
binlog_do_db: foo
auto_increment_increment: 5
max_connect_errors: 4294967295
mysql:
# my.cnf param that not require value
no-auto-rehash: noarg_present
# Manage databases
database:
- foo
- bar
schema:
foo:
load: True
source: salt://mysql/files/foo.schema
bar:
load: False
# Manage users
# you can get pillar for existent server using import_users.py script
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']
grant_option: True
- database: bar
table: foobar
grants: ['select', 'insert', 'update', 'delete']
- name: nopassuser
password: ~
host: localhost
databases: []
# 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