No description
fb00c75ced
- previously setting the root password failed on Debian b/c a root password was already set during package installation - Debian already installs mysql with a maintainance user capable of performing any required database actions. - this patch splits setting of root password to be redhat specific. - as a consequence, users will not be able to specify a root password on Debian (which needs to be opened as a seperate ticket) |
||
---|---|---|
files | ||
lib/puppet | ||
manifests | ||
templates | ||
tests | ||
.gitignore | ||
CHANGELOG | ||
LICENSE | ||
Modulefile | ||
README | ||
TODO |
Mysql module: This module has evolved and is originally based on work by David Schmitt. If anyone else was involved in the development of this module and wants credit, let Puppetlabs know. The mysql module is composed of the following Classes: class { 'mysql': } - installs the mysql-client package class { 'mysql::python': } - installs mysql bindings for python class { 'mysql::ruby': } - installs mysql bindings for ruby mysql::server - installs mysql-server, starts service, sets root_pw, and sets root class { 'mysql::server': root_password => 'foo' } login infomormation in /etc/.my.cnf and /root/.my.cnf mysql::db - creates a database with a user and assign some privileges: mysql::db { 'mydb': user => 'myuser', password => 'mypass', host => 'localhost', grant => ['all'], } Providers for database types: database { 'mydb': charset => 'latin1', } database_user { 'bob@localhost': password_hash => mysql_password('foo') } database_grant { 'user@localhost/database': privileges => ['all'] , }