Commit graph

369 commits

Author SHA1 Message Date
Quentin Moss
86dbef4f5c
Fix syntax issue 2016-07-19 17:57:08 -07:00
Quentin Moss
9570b0342f
MODULES-3601 Move binary logging configuration to take place after package install 2016-07-19 17:45:18 -07:00
Nemanja Delic
041ef06c78 parametrize xtradb package name (#860) 2016-07-01 14:45:35 +01:00
TP Honey
ce892fb01f Merge pull request #856 from cfasnacht/ticket/6404-new_maxallowedpacket_parameter
add new backup dump parameter maxallowedpacket
2016-06-22 19:51:06 +01:00
Christian Fasnacht
e733df7388 add new backup dump parameter maxallowedpacket 2016-06-21 15:44:59 +02:00
Raul Gonzalez
bff5bdfc7b Resource fails when fqdn is not set.
if server don't have domain name facter don't initialize fqdn and mysql_user resource fails with "...Invalid database user..." error.
2016-06-07 19:41:46 +02:00
David Schmitt
7f590704c5 Revert "Use mariadb by default for Debian Jessie (#845)"
This reverts commit af85cf7dfb. It turned out to
be a very bad idea to change the defaults. To fix this in the long term, the
module needs to separate product/version selection from the OS-defaults. For now,
please supply those values through the main parameters to select mariadb.
2016-05-25 11:34:45 +01:00
David Schmitt
af85cf7dfb Use mariadb by default for Debian Jessie (#845) 2016-05-24 09:50:08 -07:00
Hunter Haugen
e71e712f31 Merge pull request #829 from vicinus/master
remove erroneous anchors to mysql::client from mysql::db

Over zealous containment is considered a bug, and #605 introduced inflexibilities that should have been solved at the profile level (ie, make apt update run early).
2016-05-19 10:39:46 -07:00
Nemanja Delic
352d078ed5 moving mysqld.log resource to installdb.pp (#833) 2016-05-19 10:19:01 -07:00
Matias Gianni
5a7e34b0ac Fixed an issue with Amazon linux major release 4 that would make the module exit with and error message 2016-05-18 11:47:42 -03:00
Fabian
cffc883e27 default group for logfiles on Debian/Ubuntu should be adm 2016-05-12 17:11:29 +02:00
LaurentCrisci
cda93b8452 Using ensure_packages instead of package 2016-04-25 13:29:36 +01:00
LaurentCrisci
0ad4f71934 Added bzip2 package support on mysqldump backup
The script used by this mysqldump class, mysqlbackup.sh, requires bzcat
which is part of the bzip2 package.

This patch will make sure that bzip2 is installed before setting up the
cron tab job using mysqlbackup.sh
2016-04-25 13:17:33 +01:00
Monty Solomon
d472d5bcf1 Use defaults_extra_file first; add debug messages
Remove added notices and revert to debug

Add support for Percona

Use log-error for mysqld initialize

Improve description of error log argument

Should be --log-error
2016-04-21 01:00:40 -04:00
David Schmitt
f8ae5bf6ba (FM-5050) Configure the configfile's location for mariadb
As a follow-up to the includedir fix, with mariadb, $includedir is not
set, but the configfile is still placed in a directory that will only
be created by installing the package. This patch adds that directory,
if necessary.
2016-04-14 14:33:43 +01:00
David Schmitt
232ef1818c (FM-5050) Configure the base of includedir
Without this change installing mysql fails with the following errors on Debian and
Ubuntu:

Error: Cannot create /etc/mysql/conf.d; parent directory /etc/mysql does not exist
Error: /Stage[main]/Mysql::Server::Config/File[/etc/mysql/conf.d]/ensure: change from absent to directory failed: Cannot create /etc/mysql/conf.d; parent directory /etc/mysql does not exist
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_rmdir - /etc/mysql/my.cnf20160413-2395-1uo3ffj.lock at 39:/etc/puppetlabs/code/modules/mysql/manifests/server/config.pp
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_rmdir - /etc/mysql/my.cnf20160413-2395-1uo3ffj.lock at 39:/etc/puppetlabs/code/modules/mysql/manifests/server/config.pp
Wrapped exception:
No such file or directory @ dir_s_rmdir - /etc/mysql/my.cnf20160413-2395-1uo3ffj.lock
Error: /Stage[main]/Mysql::Server::Config/File[mysql-config-file]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory @ dir_s_rmdir - /etc/mysql/my.cnf20160413-2395-1uo3ffj.lock at 39:/etc/puppetlabs/code/modules/mysql/manifests/server/config.pp
2016-04-13 14:39:22 +01:00
Hunter Haugen
67ea1c4dd3 (MODULES-1256) Fix parameters on OpenSUSE 12 2016-04-11 14:49:18 -07:00
Reinhard Vicinus
9fe85340f4 removed erroneous dependencies 2016-04-08 16:55:57 +02:00
Igor Galić
b41dc6f4b3 Merge pull request #813 from tomkrouper/config-before-install
Config before install
2016-03-29 16:16:11 +02:00
Hunter Haugen
d8206aa4ec Allow mysql::backup::mysqldump to access root_group in tests 2016-03-25 15:31:15 -07:00
Tom Krouper
8b366fe7df Move config install before package install
This prevents mysqld from running without its intended configuration.
2016-03-25 09:01:31 -07:00
Maksim Malchuk
61619f69fc Use mysql_install_db only with uniq defaults-extra-file
Executing mysql_install_db with the defaults-extra-file set to the
global option file can produce errors with duplicates. For example it
happens when 'ignore-db-dir' option passed to $override_options in
mysql::server class. Same as https://bugs.mysql.com/bug.php?id=69441
2016-03-11 22:24:55 +03:00
Thomas Cadeau
b33f9c663e Move all dependencies to not have them in case of service unmanaged 2016-01-07 19:40:19 +01:00
Igor Galić
5e7b999615 Merge pull request #784 from vicinus/master
ensure if service restart to wait till mysql is up
2015-12-21 12:52:04 +01:00
Vicinus, Reinhard
3a49209a6f ensure if service restart to wait till mysql is up 2015-12-19 20:43:49 +01:00
Igor Galić
45419fde6d Merge pull request #787 from obi11235/master
Fixing error when disabling service management and the service does not exist
2015-12-15 17:28:09 +01:00
David Schmitt
c353259fd9 Merge pull request #769 from gabriel403/master
Ubuntu vivid should use systemd not upstart
2015-12-15 16:18:58 +00:00
Gabriel Baker
681d4f856f Ubuntu vivid should use systemd not upstart 2015-12-15 15:38:18 +00:00
Paul
3a29c5e552 Fixing error when disabling service management and the service does not exist 2015-12-14 16:52:37 -05:00
Robert Heinzmann
bdf4d0f52d Fixed MySQL 5.7.6++ compatibility
- Added MySQL version and flavour detection support
  - Added mysql_datadir provider/type (replaces Exec[mysql_install_db])
  - Added version specific parameters my.cnf ([mysqld-5.X] sections)
  - Version specific user mangement SQL (ALTER USER for 5.7.6++ ...)

Rebased-By: David Schmitt <david.schmitt@puppetlabs.com>
2015-12-10 18:39:40 +00:00
Tim McLaughlin
3a6a6c6358 Checking major release instead of specific release per @cmurphy. 2015-11-13 11:04:57 -08:00
Tim McLaughlin
47c1eb7386 Merging with upstream changes from https://github.com/puppetlabs/puppetlabs-mysql.git 2015-11-13 10:48:49 -08:00
Bryan Jen
9d9c78fc71 Merge pull request #773 from liaoishere/bug
(MODULES-2787) Fixes for future parser
2015-11-05 16:27:15 -07:00
Liao Penghui
3694ae2a80 (MODULES-2787) Fixes for future parser
The weekday attribute of cron resource will be parse to negetive integer
with future parser. This patch is aim to ensure that the value types of
cron resouce are valid with future parser.
2015-11-05 00:11:15 +08:00
David Schmitt
5f49c45b2e (MODULES-2683) fix version compare to properly suppress show_diff for root password 2015-10-13 11:29:53 +01:00
David Schmitt
ad204cb622 (MODULES-2490) correct the daemon_dev_package_name for mariadb on redhat 2015-10-12 17:59:06 +01:00
Igor Galić
c17c46552b Merge pull request #751 from mcanevet/patch-1
Fix when not managing config file
2015-09-22 15:07:27 +02:00
Mickaël Canévet
6228846ae0 Fix when not managing config file
This code have been remove here 4bab65edcb (diff-0938042fe2382aeb10032aa7f8444995) but it is required otherwise we get an `Evaluation Error: Unknown variable: 'install_db_args'.` when using `manage_config_file = false`
2015-09-22 14:28:15 +02:00
Morgan Haskel
3e8e0320cf Compatibility with PE 3.3
Add workarounds to ENTERPRISE-258 and update metadata accordingly.
2015-08-31 14:49:24 -07:00
Christoph Fiehe
ff4ce8c5d4 Fixes improper use of function 'warn' in backup manifest of server.
Have a look to the following sites:
https://ask.puppetlabs.com/question/13288/whats-the-difference-between-warn-and-warning/
https://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html?_ga=1.41504802.1433359326.1439356343
2015-08-12 07:30:42 +02:00
Hunter Haugen
603a02d118 (PUP-5021) depend on package title, not name 2015-08-10 14:03:49 -07:00
JT (Jonny)
ced1a08c34 Merge pull request #682 from eems-leo/process-secret-file
Remove default install root password if set
2015-08-06 15:14:19 +01:00
Johnson Earls
6924dea7bd #2030 Only establish dependency between service and package if package is managed. 2015-08-06 14:23:47 +01:00
JT (Jonny)
2c8a822f25 Merge pull request #744 from danzilio/xtrabackup_enhancements
(MODULES-2340) Implement script functionality for xtrabackup provider
2015-08-06 13:57:02 +01:00
David Danzilio
a7a5c66bc4 Add support for postscript for xtrabackup provider
This commit implements the 'postscript' functionality for the xtrabackup
provider. It also adds a 'prescript' option to be executed before a
backup.
2015-08-05 16:15:25 -04:00
Michael Chapman
0dffab2923 Fix show_diff already set on .my.cnf
show_diff is set twice on .my.cnf causing compilation error:

Parameter 'show_diff' is already set on File[/.my.cnf]

This patch removes one of them
2015-08-05 15:03:45 +10:00
Hunter Haugen
c7de52013b Merge pull request #742 from redhat-cip/idempotent-config
Ensure idempotency between Puppet runs
2015-08-04 11:05:46 -07:00
Emilien Macchi
ba52d1d6e9 Ensure idempotency between Puppet runs
Running RHEL 7.1, puppetlabs-mysql is not idempotent.
After a second run, puppet tries to change the SElinux context:
/File[mysql-config-file]/seltype: seltype changed 'etc_t' to
'mysqld_etc_t'

Since packaging already manages SElinux labels, we should not let
Puppet doing it (default behavior).
This patch aims to set selinux_ignore_defaults to True for the
mysql-config-file File resource.

Thanks to that patch, Puppet will be indempotent between all runs on
RHEL platforms.
2015-08-04 13:38:03 -04:00
Bryan Jen
f0a064aebd Merge pull request #739 from hunner/dont_print_root
Dont print root
2015-08-03 15:01:18 -07:00