Commit graph

315 commits

Author SHA1 Message Date
Lebedev Vadim
a42d5bea53 Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql 2013-06-26 14:06:01 +04:00
Ryan Coleman
08579ef07e Merge pull request #202 from hunner/release_0.7.0
Release 0.7.0
2013-06-25 17:07:20 -07:00
Hunter Haugen
db18db51f6 Release 0.7.0
This is a maintenance release for community bugfixes and exposing
configuration variables.

* Add new `mysql` class parameters:
 -  `basedir`: The base directory mysql uses
 -  `bind_address`: The IP mysql binds to
 -  `client_package_name`: The name of the mysql client package
 -  `config_file`: The location of the server config file
 -  `config_template`: The template to use to generate my.cnf
 -  `datadir`: The directory MySQL's datafiles are stored
 -  `default_engine`: The default engine to use for tables
 -  `etc_root_password`: Whether or not to add the mysql root password to
 /etc/my.cnf
 -  `java_package_name`: The name of the java package containing the java
 connector
 -  `log_error`: Where to log errors
 -  `manage_service`: Boolean dictating if mysql::server should manage the
 service
 -  `max_allowed_packet`: Maximum network packet size mysqld will accept
 -  `old_root_password`: Previous root user password
 -  `php_package_name`: The name of the phpmysql package to install
 -  `pidfile`: The location mysql will expect the pidfile to be
 -  `port`: The port mysql listens on
 -  `purge_conf_dir`: Value fed to recurse and purge parameters of the
 /etc/mysql/conf.d resource
 -  `python_package_name`: The name of the python mysql package to install
 -  `restart`: Whether to restart mysqld
 -  `root_group`: Use specified group for root-owned files
 -  `root_password`: The root MySQL password to use
 -  `ruby_package_name`: The name of the ruby mysql package to install
 -  `ruby_package_provider`: The installation suite to use when installing the
 ruby package
 -  `server_package_name`: The name of the server package to install
 -  `service_name`: The name of the service to start
 -  `service_provider`: The name of the service provider
 -  `socket`: The location of the MySQL server socket file
 -  `ssl_ca`: The location of the SSL CA Cert
 -  `ssl_cert`: The location of the SSL Certificate to use
 -  `ssl_key`: The SSL key to use
 -  `ssl`: Whether or not to enable ssl
 -  `tmpdir`: The directory MySQL's tmpfiles are stored
* Deprecate `mysql::package_name` parameter in favor of
`mysql::client_package_name`
* Fix local variable template deprecation
* Fix dependency ordering in `mysql::db`
* Fix ANSI quoting in queries
* Fix travis support (but still messy)
* Fix typos
2013-06-25 16:35:28 -07:00
Hunter Haugen
d8ddbc8bdb Merge pull request #200 from hunner/tmpconfigure
make tmpdir configurable
2013-06-25 15:33:16 -07:00
Hunter Haugen
c459884dc9 Change tmpdir to @tmpdir 2013-06-25 15:06:07 -07:00
Niek Beernink
9dc1b946de make tmpdir configurable 2013-06-25 15:06:07 -07:00
Hunter Haugen
d41dbfd69f Merge pull request #201 from hunner/template_depr
Update template for #179
2013-06-25 15:04:19 -07:00
Hunter Haugen
4b900ec44d Update template for #179 2013-06-25 15:03:12 -07:00
Hunter Haugen
a04038efb0 Merge pull request #179 from msmithgu/parameterize-max_allowed_packet
Parameterized max_allowed_packet my.conf config setting, because it is needed to setup puppet-dashboard.
2013-06-25 14:56:53 -07:00
Hunter Haugen
16affe5af8 Merge pull request #199 from hunner/ansi_quotes
Fix SQL when ANSI_QUOTES is enabled in mysql config.
2013-06-25 10:22:00 -07:00
Hunter Haugen
18866d2c36 Merge pull request #197 from mhellmic/RedHat
change the distribution osfamily from Redhat into RedHat
2013-06-24 16:24:23 -07:00
Hunter Haugen
d68aa838e4 Update specs for ansi quoting 2013-06-24 14:51:12 -07:00
Stuart Grimshaw
608e4e8f43 Fixed SQL for databse_grant and database_user when ANSI_QUOTES Mysql option is set. 2013-06-24 14:50:39 -07:00
Hunter Haugen
d29bc94d1b Merge pull request #188 from gimler/patch-1
fix puppet warning default_engine
2013-06-24 14:34:08 -07:00
Hunter Haugen
826d441229 Merge pull request #192 from doismellburning/patch-1
Update README.md
2013-06-24 14:33:37 -07:00
Steve Traylen
b9b122e65a change the distribution osfamily from Redhat into RedHat 2013-06-24 16:24:50 +02:00
Lebedev Vadim
4d9e9a50ae * Fixing lint warnings 2013-06-17 18:07:21 +04:00
Lebedev Vadim
fad4f06cb2 * Fixing lint warnings 2013-06-17 18:04:55 +04:00
Lebedev Vadim
6c81ea0d24 * Trying fix unit tests for Travis 2013-06-16 19:41:29 +04:00
Kristian Glass
5d9bd3eaa4 Update README.md
Typo fix (priviledged -> privileged)
2013-06-13 16:00:13 +02:00
Lebedev Vadim
b07c67ec18 Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql 2013-06-10 16:36:41 +04:00
Gordon Franke
04fb83f456 fix puppet warning default_engine 2013-05-29 15:16:48 +03:00
Hunter Haugen
efb7a6ee90 Merge pull request #185 from ChrisRut/master
fix variables in templates
2013-05-28 12:18:42 -07:00
Chris Rutter
6194354a7b use of variables w/ out a '@' has been deprecated, and as of 3.2.x Puppet warns about it 2013-05-24 10:01:52 -04:00
Lebedev Vadim
1a13580f49 Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql
Conflicts:
	manifests/config.pp
	manifests/params.pp
2013-05-21 20:40:50 +04:00
Lebedev Vadim
a171c52a89 * Puppet 2.6 fix 2013-05-21 01:21:38 +04:00
Mark Smith-Guerrero
242f6e5881 parameterized previously hardcoded max_allowed_packet config setting 2013-05-06 15:55:53 -04:00
Mark Smith-Guerrero
7f94bc3c97 added spec test for parameterized max_allowed_packet 2013-05-06 15:54:47 -04:00
Hunter Haugen
2fafc3301c Merge pull request #178 from wolfspyre/master
python_package_name parameter missing
2013-05-03 15:33:37 -07:00
Wolf Noble
cf78bea206 minor fix to alphabetization of package_ensure parameter 2013-05-03 17:06:06 -05:00
Wolf Noble
569448c0a6 Fix missing python_package_name parameter 2013-05-03 17:00:52 -05:00
Dan Bode
d8fbc283e0 Merge pull request #171 from ctrlaltdel/fix-default-storage-engine
[Important] Fix default-storage-engine default value
2013-04-28 13:11:30 -07:00
Francois Deppierraz
a555848e7d Test to avoid broken default-storage-engine settings 2013-04-26 00:30:09 +02:00
Francois Deppierraz
391abe753f Fix default-storage-engine default value
Without this commit, puppetlabs-mysql breaks mysql configuration by inserting a
dummy default-storage-engine directive. This will prevent mysql daemon from
starting up.

For example:

notice: /Stage[main]/Mysql::Config/File[/etc/mysql/my.cnf]/content:
--- /etc/mysql/my.cnf   2013-04-25 21:36:25.000000000 +0000
+++ /tmp/puppet-file20130425-12937-10tcf50-0    2013-04-25 21:42:49.000000000 +0000
@@ -29,6 +29,8 @@
 expire_logs_days   = 10
 max_binlog_size    = 100M

+default-storage-engine = undef
+

 [mysqldump]
2013-04-25 23:46:34 +02:00
Hunter Haugen
a42c9914e0 Merge pull request #169 from wolfspyre/master
Refactor to put a knob on all parameters
2013-04-25 11:14:41 -07:00
Wolf Noble
e65775cd3d Removal of trailing commas to the last parameter of classes for backwards compatibility with Puppet2.6 2013-04-24 17:02:46 -05:00
Wolf Noble
2deb2b2da3 Remove trailing comma to server.pp for 2.6 backwards compatibility. 2013-04-24 15:38:05 -05:00
Wolf Noble
78278f50b5 restore package_name parameter to maintain backward compatibility.
Removal of the ambiguously named package_name parameter, without having a version provide a deprecation warning for a reasonable amount of time seems unreasonable.
As Hunner suggests, adding a workaround variable to init.pp and use that as package name gives us the ability to warn users about the upcoming deprecation, while still maintaining backwards compatibility.
2013-04-24 15:35:08 -05:00
Wolf Noble
38a6954559 Fix to config.pp. Remove trailing , on last parameter, which breaks in puppet 2.6
Fix to config.pp. Remove trailing , on last parameter, which breaks in puppet 2.6
2013-04-24 15:14:19 -05:00
Wolf Noble
b79477d57d Out of scope of this refactor
we don't need these defines for this refactor. Removing for simplicity's sake
2013-04-16 13:45:07 -05:00
Wolf Noble
33e2a45000 Some minor fixes to appease puppet lint 2013-04-11 12:02:41 -05:00
Wolf Noble
0f6886bd99 Refactor of classes to put everything as a param to mysql to prepare for autoloading from hiera
put a handle on all the params of the class in init.pp so that they can be autoloaded from hiera, and easily fed to the class from a profile class
2013-04-09 13:45:55 -05:00
Lebedev Vadim
5ea8e5f920 * Adding server_idparameter to mysql::config`
* Adding `sql_log_bin` parameter to `mysql::config`
* Adding `log_bin` parameter to `mysql::config`
* Adding `max_binlog_size` parameter to `mysql::config`
* Adding `binlog_do_db` parameter to `mysql::config`
* Adding `expire_logs_days` parameter to `mysql::config`
* Adding `log_bin_trust_function_creators` parameter to `mysql::config`
* Adding `replicate_ignore_table` parameter to `mysql::config`
* Adding `replicate_wild_do_table` parameter to `mysql::config`
* Adding `replicate_wild_ignore_table` parameter to `mysql::config`
* Adding `expire_logs_days`  parameter to `mysql::params`
* Adding `max_binlog_size` parameter to `mysql::params`
2013-04-08 19:23:24 +04:00
Lebedev Vadim
2a1b1e7962 * Adding key_buffer parameter to mysql::config
* Adding `thread_stack` parameter to `mysql::config`
* Adding `thread_cache_size` parameter to `mysql::config`
* Adding `myisam-recover` parameter to `mysql::config`
* Adding `query_cache_limit` parameter to `mysql::config`
* Adding `query_cache_size` parameter to `mysql::config`
* Adding `max_connections` parameter to `mysql::config`
* Adding `tmp_table_size` parameter to `mysql::config`
* Adding `table_open_cache` parameter to `mysql::config`
* Adding `long_query_time` parameter to `mysql::config`
* Updating mysql_config spec tests
* Fixing lint warnings
2013-04-08 00:20:36 +04:00
Lebedev Vadim
e3b6de2da2 Implement character_set. You can change the default server and
client character set
2013-04-04 14:02:58 +04:00
Wolf Noble
43352709b2 Merge branch 'master' of git://github.com/puppetlabs/puppetlabs-mysql 2013-04-03 15:57:53 -05:00
Ken Barber
8000041e9f Merge pull request #163 from domcleal/pp26
Puppet 2.6 fix
2013-03-21 17:32:18 -07:00
Dominic Cleal
fabb06464a Add create_resources to fix Travis CI failure on Puppet 2.6 2013-03-22 00:01:52 +00:00
Dominic Cleal
3d1703fc7f Move hash outside of function call, fixes for Puppet 2.6 2013-03-21 23:59:27 +00:00
Ken Barber
1d10682423 Merge pull request #158 from ke4qqq/patch-1
Adding php bindings to readme
2013-03-03 13:02:55 -08:00