module-puppetlabs-mysql/README

49 lines
1 KiB
Text
Raw Normal View History

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.
2011-06-03 22:37:43 +02:00
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'
}
2011-08-22 21:51:50 +02:00
login information in /etc/.my.cnf and /root/.my.cnf
2011-06-03 22:37:43 +02:00
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'] ,
}