Commit graph

1061 commits

Author SHA1 Message Date
Justin Brown
af30a52182 Backup Compression Optional
Added a parameter to mysql::backup to make bzip2 compression
optional. Compression is enabled by default, so current behavior
is not affected.

Rationale:
We are storing our MySQL backups on a system with deduplication.
Compression and dedup do not play well together, so it's advantagous
to be able to disable it.
2012-09-26 13:40:59 -07:00
Hunter Haugen
6a7d84369e Add spec tests for backup compression enabled/disabled 2012-09-26 13:40:59 -07:00
Hunter Haugen
b9e4b0aa2d Merge pull request #115 from frimik/restart_optional_and_minor_doc_fix
Restart optional and minor doc fix
2012-09-17 15:37:16 -07:00
Mikael Fridh
063b8c097c Minor rdoc fixes in mysql::config class 2012-09-08 12:12:27 +02:00
Mikael Fridh
af58059903 Make service restarts optional
Useful if you prefer to not have your mysql service touched after it is
running.
2012-09-08 12:09:44 +02:00
Hunter Haugen
d98efe3b7a Merge pull request #113 from janoszen/ipv6
IPv6
2012-09-05 11:01:12 -07:00
Dan Bode
88164421b6 Merge pull request #114 from dalen/immutable_variables
Don't assign to hash after creation
2012-09-05 07:57:46 -07:00
Erik Dalén
fa1915b2e5 Don't assign to hash after creation
We shouldn't modify a variable after creating it. It is just a bug that
it is possible at all.
2012-09-05 16:43:11 +02:00
Dan Bode
cab78236c5 Merge pull request #112 from hunner/fix_mysql_backup_spec
Update mysql::backup privs for #108
2012-09-05 07:38:47 -07:00
Janos Pasztor
e77576d8e7 Added spec for IPv6 changes as requested by upstream 2012-09-05 09:58:42 +02:00
Hunter Haugen
8b9f17348c Update mysql::backup privs for #108 2012-09-04 17:04:26 -07:00
Janos Pasztor
ef3ccd1b8b Added : to allowed host names for IPv6 addresses 2012-09-04 21:44:51 +02:00
Janos Pasztor
0c07e42427 Added IPv6 localhost to account_security 2012-09-04 21:42:07 +02:00
Hunter Haugen
5e8f98b5d2 Merge pull request #108 from Paulche/master
Add show view privilege for backup user

This is valid for database dumps which contain views, as per http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
2012-09-04 11:18:43 -07:00
Dan Bode
2196956f5f Merge pull request #110 from dalen/master
Fix lint warnings
2012-09-04 09:06:46 -07:00
Erik Dalén
b670071d9f Fix lint warnings 2012-09-04 16:25:08 +02:00
Paul Chechetin
f1b6495490 Add show_view_privilege for backup user 2012-09-03 16:53:59 +04:00
Hunter Haugen
0e4de09934 Merge pull request #93 from Savar/master
new config define and a small bugfix
2012-08-29 11:54:58 -07:00
Simon Effenberg
e27cff0bd9 fixed typo 2012-08-24 08:06:17 +02:00
Simon Effenberg
e47b4d19e7 fixed documentation and added rspec
* fixed a typo in the documentation
* added documentation for parameter +notify_service+
* added rspec test
2012-08-24 08:01:33 +02:00
Branan Purvine-Riley
e01b1fcbe8 Merge pull request #107 from hunner/release_0.5.0
Release 0.5.0
2012-08-23 19:21:05 -07:00
Hunter Haugen
fe3d6c3088 Release 0.5.0
Changes:
- Add puppetlabs/stdlib as requirement
- Add validation for mysql privs in provider
- Add `pidfile` parameter to mysql::config
- Add `ensure` parameter to mysql::db
- Add Amazon linux support
- Change `bind_address` parameter to be optional in my.cnf template

Bugfixes:
- Quote root passwords
2012-08-23 19:19:40 -07:00
Branan Purvine-Riley
c776e6662f Merge pull request #106 from hunner/add_bind-address_unset
Add bind address unset
2012-08-23 18:40:20 -07:00
Hunter Haugen
036b97870b Update bind_address conditional for false 2012-08-23 18:30:37 -07:00
Branan Purvine-Riley
796e25ba91 Merge pull request #91 from reidmv/feature/master/priv_validation
Add priv validation to database_grant provider
2012-08-23 18:24:18 -07:00
Luis Munoz
80521e12b6 Add posiblity to UNSET bind-address 2012-08-23 18:20:35 -07:00
Dan Bode
606e7c5cbd Merge pull request #105 from derekhiggins/update-validate_re
Change list passed into validate_re to a stringe
2012-08-23 03:51:00 -07:00
Derek Higgins
06fe2fdbd2 Change list passed into validate_re to a stringe
The list was causing a syntax error on puppet puppet 2.6.17
2012-08-23 10:04:30 +01:00
Simon Effenberg
1fb0c273a8 fixed .my.cnf path
* rollback for the file location + updated the documentation
2012-08-23 07:36:30 +02:00
Hunter Haugen
bfd19998d1 Merge pull request #101 from martasd/manage-db-status
Added an option to specify db status.
2012-08-22 11:30:46 -07:00
Dan Bode
147cf40301 Merge pull request #102 from Mirantis/config-pidfile
Parameterized pidfile; critical for successful first restart
2012-08-21 22:50:29 -07:00
Eugene Kirpichov
6869b77541 Parameterized pidfile; critical for successful first restart 2012-08-21 18:32:34 -07:00
Martin Dluhos
04537908a9 Added an option to specify db status. 2012-08-21 15:40:42 -07:00
Dan Bode
96bfbdf91e Merge pull request #100 from mcary/patch-1
Clarify how to grant specific privileges with database_grant
2012-08-21 12:18:38 -07:00
mcary
0137e7edeb Clarify how to grant specific privileges with database_grant
When I tried to use database_grant, I assumed the privilege 
names would match the SQL GRANT command, for example, SELECT
or CREATE TEMPORARY TABLES.  But in fact the privilege names
are taken from columns of the mysql.db table.  As a result,
a row was created in mysqld.db, but none of the privileges 
I intended to grant were actually granted.

Someone else filed a ticket with the same issue:
http://projects.puppetlabs.com/issues/15808

Document that how to specify individual privileges in
README.md.
2012-08-21 10:42:20 -07:00
Dan Bode
3084f8c44c Merge pull request #97 from bodepd/revert
Revert "Merge pull request #90 from emonty/master"
2012-08-15 18:09:10 -07:00
Dan Bode
211da13545 Revert "Merge pull request #90 from emonty/master"
This reverts commit 063d72493c, reversing
changes made to 9c10b3a6c3.
2012-08-15 18:03:37 -07:00
Dan Bode
063d72493c Merge pull request #90 from emonty/master
Add a bunch of new parameters
2012-08-15 17:40:42 -07:00
Nan Liu
9c10b3a6c3 Merge pull request #96 from branan/missing_curly_brace
Put that curly brace in the right place this time
2012-08-14 10:11:07 -07:00
Branan Purvine-Riley
02695533c8 Put that curly brace in the right place this time 2012-08-14 10:09:33 -07:00
Nan Liu
ecf1f7685b Merge pull request #95 from branan/missing_curly_brace
Add a missing curly brace
2012-08-14 10:01:02 -07:00
Branan Purvine-Riley
1da8ae7a28 Add a missing curly brace 2012-08-14 09:58:35 -07:00
Dan Bode
c041fddbad Merge pull request #94 from hunner/amazon-linux
Add support for Amazon Linux.
2012-08-13 19:49:38 -07:00
Nick Osborn
65f72ad317 Add support for Amazon Linux. 2012-08-13 17:26:01 -07:00
Simon Effenberg
f13482bde2 New configuration define.
* added a define to easily create .cnf files in /etc/mysql/conf.d/
* fix wrong path for .my.cnf in /etc/
2012-08-13 10:59:28 +02:00
Monty Taylor
bdf181a155 Adjust location of apparmor module. 2012-08-12 07:03:24 -07:00
Monty Taylor
8e404d464b Add support for debian defaults file.
Debian defines a defaults file in /etc/mysql/debian.cnf that can be used
for system admin tasks. Use it if it's there.
2012-08-12 08:48:30 -04:00
Monty Taylor
8d97f5dca8 Add apparmor support. 2012-08-12 08:48:19 -04:00
Dan Bode
3ffa0bd66b Merge pull request #73 from razorsedge/mysqladmin_passwd
Escape $root_password during execs.
2012-08-09 09:26:54 -07:00
Michael Arnold
605fa718e1 Escape $root_password during execs.
Some characters used in a password can cause the shell in an exec to do
unexpected things unless the password is enclosed in single quotes.
Updated the rspec tests to deal with the password quoting.
2012-08-09 00:34:09 -07:00