https://github.com/osoco/puppet-mysql
Puppet module to manage mysql
https://github.com/osoco/puppet-mysql
Last synced: 2 months ago
JSON representation
Puppet module to manage mysql
- Host: GitHub
- URL: https://github.com/osoco/puppet-mysql
- Owner: osoco
- Created: 2012-05-09T11:57:42.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-01-04T17:27:44.000Z (over 13 years ago)
- Last Synced: 2025-01-16T05:25:58.975Z (over 1 year ago)
- Language: Puppet
- Size: 138 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
puppet-mysql
============
Puppet module to manage MySQL databases. Usually, mysql modules are complex and with lots of depencies.
This module aims exactly the opposite. Yet less powerful, is small and simple to use. It can:
* Install mysql server with a parametrized root password
* Define a mysql service
* Create mysql databases
* Create mysql users with given grants
Has been tested on debian squeeze.
Usage
-----
Example of usage for create a database with name 'oneDatabase' with full-privileged user 'oneUser' and
a readonly user 'oneReadOnlyUser', and another database with name 'anotherDatabase' with full-privileged user 'oneUser'.
class some_machine_mysql {
mysql::database { 'oneDatabase': }
mysql::database { 'anotherDatabase': }
mysql::user { 'oneDatabase-oneUser-user':
user => 'oneUser',
password => 'oneUserPassword',
database => 'oneDatabase',
}
mysql::user { 'oneDatabase-oneReadOnlyUser-user':
user => 'oneReadOnlyUser',
password => 'oneReadOnlyUserPassword',
database => 'oneDatabase',
host => '%',
privileges => 'SELECT'
}
mysql::user { 'anotherDatabase-oneUser-user':
user => 'oneUser',
password => 'oneUserPassword',
database => 'anotherDatabase',
}
}