Skip to content

Commit e9b65c4

Browse files
author
Dan Bode
committed
vastly improved READE
1 parent ae31122 commit e9b65c4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

README

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,46 @@ Mysql module:
33
This module has evolved and is originally based on work by David
44
Schmidt. If anyone else was involved in the development of this module
55
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+

0 commit comments

Comments
 (0)