Commit graph

1230 commits

Author SHA1 Message Date
Hunter Haugen
c3820ecde4 Merge pull request #827 from lcrisci/master
Added bzip2 package support on mysqldump backup
2016-04-25 15:54:05 -07: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
David Schmitt
3c9f8ae78a Merge pull request #819 from aerostitch/fix_percona_centos
Add documentation example for Perconna installation on Centos
2016-04-25 09:37:37 +01:00
David Schmitt
8caf42eff7 Merge pull request #818 from hubspotdevops/percona
Add support for Percona 5.7
2016-04-25 09:36:42 +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
Joseph Herlant
ff39b730cc Adding documentation on the specific case of Percona server on Centos 2016-04-19 14:16:44 -07:00
Greg Hardy
9bc20bd7cc Merge pull request #823 from puppetlabs/update-msync
Update to newest modulesync_configs [9ca280f]
2016-04-19 11:35:35 +01:00
David Schmitt
04fb127bec Update to newest modulesync_configs [9ca280f] 2016-04-18 20:15:09 +01: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
Helen
ee51d4c442 Merge pull request #821 from DavidS/fix-debian-failures
(FM-5050) Configure the base of includedir
2016-04-13 16:02:32 +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
Bryan Jen
696aff601e Merge pull request #820 from hunner/fix_opensuse
(MODULES-1256) Fix parameters on OpenSUSE 12
2016-04-11 16:33:09 -07:00
Hunter Haugen
67ea1c4dd3 (MODULES-1256) Fix parameters on OpenSUSE 12 2016-04-11 14:49:18 -07:00
TP Honey
2069c8959a Merge pull request #817 from DavidS/install-staging-acceptance
(maint) Add missing nanliu/staging module
2016-04-05 15:37:05 +01:00
David Schmitt
9aadcebb1b (maint) Add missing nanliu/staging module
The module is not really used, but its absence creates nasty warning
messages.
2016-04-05 14:52:29 +01:00
Igor Galić
9501649234 Merge pull request #815 from puppetlabs/remove_function
Remove mysql_table_exists() function
2016-03-29 16:18:42 +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
Bryan Jen
906f99e1c1 Merge pull request #811 from pashamesh/fix-mysqlbackup-globals-ignored
Fixed global parameters skipped
2016-03-28 12:39:50 -07:00
Hunter Haugen
f4fe313e65 Remove mysql_table_exists() function
This function is intended to check for the existence of a table before
declaring some resource, but this is neither portable (because functions
orun on the master, not the agent) nor one-run idempotent (because the
function would run before mysql is even installed, and would take two
runs to do anything).

The correct way of doing this would be to update the providers and
dependency ordering to handle the conditional states.

Luckily this was never released so it is backwards compatible.
2016-03-28 10:48:58 -07:00
Bryan Jen
2ff7b3dbe2 Merge pull request #816 from hunner/fix_dump
Allow mysql::backup::mysqldump to access root_group in tests
2016-03-28 10:44:54 -07: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
Bryan Jen
1835ea8f25 Merge pull request #812 from koubas/fix_debian_mariadb_detection
Loosen MariaDB recognition to fix it on Debian 8
2016-03-21 15:52:11 -07:00
Jakub Husak
1a67c3868b Loosen MariaDB recognition to fix it on Debian 8 2016-03-18 16:26:48 +01:00
Pasha MESH
8a38fe9bd0 Fixed global parameters skipped
Fixed problem with ignoring parameters from global configs
2016-03-17 19:32:39 +03:00
Igor Galić
d58a100fa6 Merge pull request #810 from occelebi/backupdir
Ensure backup directory exist
2016-03-14 20:58:16 +01:00
Onur Cem Celebi
1bd7b7be83 Ensure backup directory exist 2016-03-14 16:44:43 +01:00
Hunter Haugen
9d611106bb Merge pull request #808 from mmalchuk/master
Use mysql_install_db only with uniq defaults-extra-file
2016-03-11 13:39:30 -08: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
Bryan Jen
a3d0de3e05 Merge pull request #805 from jbondpdx/master
FM-3333: moved a puppet
2016-03-03 18:22:09 -07:00
jbondpdx
35b5f1c6c5 FM-3333: moved a puppet 2016-03-03 17:19:12 -08:00
Hunter Haugen
cd7c912ea6 Merge pull request #804 from jbondpdx/master
FM-3333: tuning up mysql readme
2016-03-03 16:35:50 -08:00
jbondpdx
f06e1264cd FM-3333: tuning up mysql readme
now with more puppets
2016-03-03 16:32:41 -08:00
TP Honey
a2044354f4 Merge pull request #801 from holser/my_cnf
Generate .my.cnf for all sections
2016-02-19 15:26:31 +00:00
Sergii Golovatiuk
4faa3f12ee Generate .my.cnf for all sections
MySQL ecosystem has a lot of tools that use .my.cnf such as mysqldump or
mysqladmin. Generating all sections allows operator to use them under
root account without passing -p<password>
2016-02-18 11:48:16 +01:00
Helen
7a92634f69 Merge pull request #800 from DavidS/debian-8-support
Update metadata to note Debian 8 support
2016-02-17 12:14:52 +00:00
David Schmitt
37abc3a395 Update metadata to note Debian 8 support 2016-02-17 11:59:09 +00:00
Hunter Haugen
d79579988c Merge pull request #799 from DavidS/fm-4046-update-msync
(FM-4046) Update to current msync configs [006831f]
2016-02-16 12:02:12 -08:00
David Schmitt
f99a3fa78e (FM-4046) Update to current msync configs [006831f]
This moves all copyright statements to the NOTICE file in accordance with the ASFs guidelines on applying the Apache-2.0 license.
2016-02-16 16:33:44 +00:00
Helen
e6c3f53079 Merge pull request #797 from mmoll/xenial
mark Ubuntu xenial as supported
2016-02-11 15:22:58 +00:00
Michael Moll
05ba436b0a mark Ubuntu xenial as supported 2016-02-07 02:05:28 +01:00
Bryan Jen
6598be8eed Merge pull request #796 from jhriggs/ticket/3028-fix_grants_with_ANSI_QUOTES
(#3028) Fix mysql_grant with MySQL ANSI_QUOTES mode
2016-02-04 18:01:08 -07:00
Jim Riggs
31c17b0484 (#3028) Fix mysql_grant with MySQL ANSI_QUOTES mode
Change mysql_grant provider to ignore/delete double-quotes -- as it does with single quotes and backticks -- in the returned list of existing grants. With ANSI_QUOTES enabled in MySQL's sql_mode, grant identifiers (e.g. database name) are quoted with double-quotes rather than backticks, for example "foo".* vs. `foo`.*. This breaks mysql_grant's evaluation of existing grants and causes it to apply grants with every run.
2016-02-03 08:21:07 -06:00
Hunter Haugen
aa29170f5b Merge pull request #795 from DavidS/fm-4049-update-msync
(FM-4049) update to modulesync_configs
2016-01-27 08:36:19 -08:00
David Schmitt
7889a85d37 (FM-4049) Update to current msync configs [2c99161] 2016-01-27 14:44:53 +00:00
TP Honey
bc1c44afa4 Merge pull request #794 from DavidS/fm-4563-share-tmpdir
(FM-4563) fix tmpdir to be shared across examples
2016-01-19 11:40:53 +00:00
David Schmitt
95841d3a8c (FM-4563) fix tmpdir to be shared across examples 2016-01-19 10:45:25 +00:00
TP Honey
ecff1f3dd3 Merge pull request #793 from DavidS/fm-4563-workaround-pup-5016
(FM-4563) workaround PUP-5016
2016-01-18 17:27:35 +00:00
David Schmitt
d89062faff (FM-4563) skip idempotency tests on test cells that do have PUP-5016 unfixed
Arguably this decision should be extracted to a more central place,
like puppetlabs_spec_helper or the CI config.
2016-01-18 15:15:52 +00:00