No description
e3b9fd90a6
Previous to this commit, if the sql parameter was provided to a declaration of the mysql::db defined type, the defined type would always load the sql script on every catalog run. This changes the exec that loads that sql script to be refreshonly unless the enforce_sql parameter is set to true. |
||
---|---|---|
files | ||
lib/puppet | ||
manifests | ||
spec | ||
templates | ||
tests | ||
.gitignore | ||
CHANGELOG | ||
LICENSE | ||
Modulefile | ||
Rakefile | ||
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': config_hash => { 'root_password' => 'foo' } } login information 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'] , }