Commit graph

1068 commits

Author SHA1 Message Date
Ashley Penney
37f38d0ad7 Merge pull request #216 from vakuum/pr-1
Fixed PID file location for SLES 11 SP2.
2013-07-08 12:19:27 -07:00
Clemens Fuchslocher
2e82660446 Fixed PID file location for SLES 11 SP2. 2013-07-08 20:50:43 +02:00
Marius Bakke
5f3708ff24 add spec for max_user_connections on database_user 2013-07-08 17:49:59 +02:00
Marius Bakke
2548ab63e8 support max_user_connections in database_user 2013-07-08 17:31:07 +02:00
Martin Magr
e3d74a65b0 Use $root_home for .my.cnf 2013-07-08 11:49:30 +02:00
Oleg Malashenko
c89289c53c Merge pull request #1 from apenney/omalashenko
Tweak spec file to account for days of rotation.
2013-07-07 03:41:45 -07:00
Ashley Penney
afbf80879b Merge pull request #213 from apenney/081-release
Release 0.8.1 to fix a Fedora 19 bug.
2013-07-05 16:14:11 -07:00
Ashley Penney
66077bb06a Release 0.8.1 to fix a Fedora 19 bug. 2013-07-05 19:12:26 -04:00
Ashley Penney
3d641d073a Merge pull request #212 from derekhiggins/fact-typo
Fix typo in fact name
2013-07-05 16:10:57 -07:00
Derek Higgins
48af8a727d Fix typo in fact name 2013-07-06 00:08:02 +01:00
Hunter Haugen
c34bcc0f73 Add rspec-system / serverspec tests 2013-07-05 15:19:02 -07:00
Hunter Haugen
ec7e40e18d Merge pull request #211 from apenney/specs
Add basic specs for database provider.
2013-07-05 12:17:12 -07:00
Ashley Penney
4d811e4704 Add basic specs for database provider. 2013-07-05 15:04:04 -04:00
Hunter Haugen
d36597860d Merge pull request #206 from apenney/080-release
Prepare the 0.8.0 release.
2013-07-05 10:58:07 -07:00
Ashley Penney
17fdcf8138 Prepare the 0.8.0 release. 2013-07-05 13:02:48 -04:00
Ashley Penney
2b91872407 Merge pull request #210 from red-trela/fedora-19-mariadb
Cover Fedora 19's move from mysql to mariadb packages
2013-07-05 09:56:59 -07:00
Ashley Penney
d35261dc16 Tweak spec file to account for days of rotation. 2013-07-05 12:32:19 -04:00
Ashley Penney
e8e236775c Merge pull request #165 from leinaddm/add_ft_word_len_options
add ft_min_word_len and ft_max_word_len config options
2013-07-05 08:56:19 -07:00
Sandro Mathys
3ca7d958df Cover Fedora 19's move from mysql to mariadb packages 2013-07-05 10:53:56 +02:00
Daniel De Marco
e12eb0e19f add ft_min_word_len and ft_max_word_len config options 2013-07-04 21:33:53 -04:00
Oleg Malashenko
d7460d4b02 backup: configurable cleanup sequence
$delete_before_dump controls whether old backups to be removed before
creating new one.
2013-07-05 11:27:29 +10:00
Oleg Malashenko
1521a2ea4f Fixed tests for mysqlbackup.sh 2013-07-05 11:27:29 +10:00
Oleg Malashenko
9e2540f4fc Harden mysqlbackup.sh script
* mysql::backup backuprotate parameter sets the number of backups to keep,
   default is 30.

 * Use bash in mysqlbackup.sh to get exit status of mysqldump when piped to
   bzip2. Unfortunately there is no easy portable way to do that.

 * Only delete old backups when current backup finished successfully.

 * Try hard not to delete files that we didn't create (i.e. README or other
   backups).
2013-07-05 11:27:29 +10:00
Hunter Haugen
0dfa6a4857 Merge pull request #208 from apenney/database_user
Database user refactor/tests
2013-07-03 22:24:56 -07:00
Ashley Penney
8bf03681f3 Various changes to the provider to ensure commands are successful,
as well as improvements to the tests.
2013-07-03 16:08:48 -04:00
Ashley Penney
00130ef6c6 Add initial spec tests for database_user. 2013-07-03 13:22:48 -04:00
Ashley Penney
e961b83226 Fix spelling of privileges across the spec file. 2013-07-02 16:57:36 -04:00
Ashley Penney
731036e272 Merge pull request #167 from abraham1901/master
Implement character_set and other options
2013-07-02 11:32:46 -07:00
Lebedev Vadim
9d69afcae7 Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql
Conflicts:
	manifests/config.pp
	spec/classes/mysql_config_spec.rb
2013-07-02 22:11:19 +04:00
Ashley Penney
aa5d1f070b Merge pull request #198 from mhellmic/maxconnections
add a maximum connection parameter and set the default to 1000
2013-07-02 10:43:29 -07:00
Lebedev Vadim
6cef2e8af4 Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql 2013-07-02 21:42:49 +04:00
Ashley Penney
f3e5c89551 Merge pull request #187 from RsrchBoy/topic/perl
add mysql::perl helper class
2013-07-02 10:37:10 -07:00
Ashley Penney
1b5dc3ce68 Merge pull request #186 from apenney/rootpassword
(WIP) #20562: Minor fix for ordering
2013-07-02 10:36:31 -07:00
Lebedev Vadim
ead86b5a3f Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql
Conflicts:
	manifests/config.pp
2013-07-02 21:26:43 +04:00
Ashley Penney
d9ce083f20 Merge pull request #162 from frimik/19744
fixes #19744 - no restart on root/.my.cnf change
2013-07-02 09:56:10 -07:00
Ashley Penney
9839a1ccae Merge pull request #132 from Savar/manage_config_file_parameter
handling of my.cnf config file is now optional
2013-07-02 08:59:44 -07:00
Simon Effenberg
7f7e886d71 handling of my.cnf config file is now optional
This adds a parameter (default value is like old behavior) so that the
my.cnf file isn't managed (created/updated) by the mysql module at all
which is necessary for our environment. We need to set all parameters by
ourself. If we don't set a parameter then the default from the mysqld
binary should be used instead of any default parameter the mysql module
provides us.
2013-07-02 10:01:21 +02:00
Martin Hellmich
880eaae3e8 changed the max_connections default to 151
this is the default according to the mysql manual.
https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections
2013-06-28 11:21:58 +02:00
Martin Hellmich
1263d89a98 changed the test accordingly to the new max-connections parameter
Conflicts:
	spec/classes/mysql_config_spec.rb
2013-06-28 11:03:36 +02:00
Martin Hellmich
3089d3a59b add a maximum connection parameter and set the default to 1000
Conflicts:
	manifests/config.pp
	templates/my.cnf.erb
2013-06-28 10:15:58 +02:00
Ryan Coleman
cf74d2bcd0 Merge pull request #204 from hunner/release_0.7.1
Release 0.7.1
2013-06-26 15:13:26 -07:00
Hunter Haugen
a71482760a Release 0.7.1
Bugfixes:
- Single-quote password for special characters
- Update travis testing for puppet 3.2.x and missing Bundler gems
2013-06-26 14:46:02 -07:00
Hunter Haugen
1610add58c Merge pull request #203 from hunner/update_travis
Update specs for current testing practices and GH publish
2013-06-26 14:39:44 -07:00
Hunter Haugen
b5778d56a2 Update specs for current testing practices and GH publish 2013-06-26 14:19:57 -07:00
Hunter Haugen
deba75d18a Merge pull request #166 from ekohl/quote-mycnf
Quote the password
2013-06-26 10:23:14 -07:00
Lebedev Vadim
a42d5bea53 Merge branch 'master' of https://github.com/puppetlabs/puppetlabs-mysql 2013-06-26 14:06:01 +04:00
Ewoud Kohl van Wijngaarden
59a6fb8097 Quote the password
It is possible to have a # in a password, which is parsed as a comment.
By quoting the password this is no problem.
2013-06-26 11:47:11 +02: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