No description
Find a file
Gary Larizza f4291778cc Refactor ruby package provider
Allow a parameter for the ruby-mysql package provider.  This
will allow you to use providers other than gem.
2011-06-16 14:03:05 -07:00
files adding first commit for mysql. 2011-05-24 23:22:43 -07:00
lib/puppet added more input validation for db user. 2011-05-26 18:10:30 -07:00
manifests Refactor ruby package provider 2011-06-16 14:03:05 -07:00
templates cleaned up style a little: 2011-05-26 18:11:24 -07:00
tests cleaned up style a little: 2011-05-26 18:11:24 -07:00
.gitignore ignore swap files 2011-05-26 17:59:01 -07:00
CHANGELOG Release 0.0.1 2011-06-03 13:38:29 -07:00
LICENSE Added documentation and license to module. 2011-05-31 20:47:19 -07:00
Modulefile Added modulefile. 2011-05-31 22:02:39 -07:00
README Corrected the spelling of David's name (oops!) 2011-06-05 20:05:42 -07:00
TODO added some additional TODOS 2011-06-03 13:27:44 -07:00

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'] ,
}