1CDIST-TYPE__MYSQL_DATABASE(7) cdist CDIST-TYPE__MYSQL_DATABASE(7)
2
3
4
6 cdist-type__mysql_database - Manage a MySQL database
7
9 Create MySQL database and optionally user with all privileges.
10
12 name Name of database. Defaults to object id.
13
14 user Create user and give all privileges to database.
15
16 password
17 Password for user.
18
19 state Defaults to present. If absent and user is also set, both will
20 be removed (with privileges).
21
23 # just create database
24 __mysql_database foo
25
26 # create database with respective user with all privileges to database
27 __mysql_database bar \
28 --user name \
29 --password secret
30
32 Ander Punnar <ander-at-kvlt-dot-ee>
33
35 Copyright (C) 2020 Ander Punnar. You can redistribute it and/or modify
36 it under the terms of the GNU General Public License as published by
37 the Free Software Foundation, either version 3 of the License, or (at
38 your option) any later version.
39
41 ungleich GmbH 2020
42
43
44
45
466.9.4 Dec 21, 2020 CDIST-TYPE__MYSQL_DATABASE(7)