No description
Find a file
2012-02-28 10:34:19 -08:00
files (#12412) mysqltuner.pl update 2012-02-04 07:08:08 +11:00
lib/puppet (#11363) Add two missing privileges to grant: event_priv, trigger_priv 2011-12-30 16:33:21 +00:00
manifests Ruby and Python's MySQL libraries are named differently on different 2012-02-28 10:34:19 -08:00
spec Only notify Exec to import sql if sql is given 2011-12-19 20:48:47 -08:00
templates Use socket value from params class instead of hardcoding. 2012-02-28 10:34:19 -08:00
tests (#11184) Allow wildcards in account host names 2011-12-05 23:39:47 +00: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 (minor) Fixup typos in Modulefile metadata 2011-12-20 09:23:58 -08:00
Rakefile (#11508) Only load sql_scripts on DB creation 2011-12-19 07:25:35 -08:00
README.md Changed the README to use markdown 2012-02-09 23:28:43 -08:00
TODO added some additional TODOS 2011-06-03 13:27:44 -07:00

Mysql module for Puppet

Description

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.

Usage

mysql

Installs the mysql-client package.

class { 'mysql': }

mysql::python

Installs mysql bindings for python.

class { 'mysql::python': }

mysql::ruby

Installs mysql bindings for ruby.

class { 'mysql::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'] ,
}