mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Create and manage MySQL database users with definable GRANT privileges.
This commit is contained in:
parent
88f80b06a6
commit
35be06db0c
2 changed files with 25 additions and 1 deletions
|
@ -30,4 +30,9 @@ Debian OS family supports setting MySQL root password during install via debconf
|
||||||
``mysql.database``
|
``mysql.database``
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
Create and manage MySQL databases.
|
Create and manage MySQL databases.
|
||||||
|
|
||||||
|
``mysql.database``
|
||||||
|
----------------
|
||||||
|
|
||||||
|
Create and manage MySQL database users with definable GRANT privileges.
|
|
@ -10,6 +10,25 @@ mysql:
|
||||||
- foo
|
- foo
|
||||||
- baz
|
- baz
|
||||||
|
|
||||||
|
# Manage users
|
||||||
|
user:
|
||||||
|
- name: frank
|
||||||
|
password: somepass
|
||||||
|
host: localhost
|
||||||
|
databases:
|
||||||
|
- database: foo
|
||||||
|
grants: ['select', 'insert', 'update']
|
||||||
|
- database: bar
|
||||||
|
grants: ['all privileges']
|
||||||
|
- name: bob
|
||||||
|
password: someotherpass
|
||||||
|
host: localhost
|
||||||
|
databases:
|
||||||
|
- database: foo
|
||||||
|
grants: ['all privileges']
|
||||||
|
- database: bar
|
||||||
|
grants: ['select', 'insert', 'update', 'delete']
|
||||||
|
|
||||||
# Override any names defined in map.jinja
|
# Override any names defined in map.jinja
|
||||||
lookup:
|
lookup:
|
||||||
server: mysql-server
|
server: mysql-server
|
||||||
|
|
Loading…
Add table
Reference in a new issue