File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,46 @@ Mysql module:
3
3
This module has evolved and is originally based on work by David
4
4
Schmidt. If anyone else was involved in the development of this module
5
5
and wants credit, let Puppetlabs know.
6
+
7
+ The mysql module is composed of the following
8
+
9
+ Classes:
10
+
11
+ class { 'mysql': } - installs the mysql-client package
12
+
13
+ class { 'mysql::python': } - installs mysql bindings for python
14
+
15
+ class { 'mysql::ruby': } - installs mysql bindings for ruby
16
+
17
+ mysql::server - installs mysql-server, starts service, sets root_pw, and sets root
18
+
19
+ class { 'mysql::server':
20
+ root_password => 'foo'
21
+ }
22
+
23
+ login infomormation in /etc/.my.cnf and /root/.my.cnf
24
+
25
+ mysql::db - creates a database with a user and assign some privileges:
26
+
27
+
28
+ mysql::db { 'mydb':
29
+ user => 'myuser',
30
+ password => 'mypass',
31
+ host => 'localhost',
32
+ grant => ['all'],
33
+ }
34
+
35
+ Providers for database types:
36
+
37
+ database { 'mydb':
38
+ charset => 'latin1',
39
+ }
40
+
41
+ database_user { 'bob@localhost':
42
+ password_hash => mysql_password('foo')
43
+ }
44
+
45
+ database_grant { 'user@localhost/database':
46
+ privileges => ['all'] ,
47
+ }
48
+
You can’t perform that action at this time.
0 commit comments