Commit graph

1272 commits

Author SHA1 Message Date
Rob Nelson
5290b0a1d9 Support for puppet/staging 2.0.0
Staging 2.0.0 has dropped ruby 1.8.7 support only. All tests are run against the head of puppet/staging already.
2016-06-17 17:23:34 -04:00
Igor Galić
5bd497579e Merge pull request #853 from ragonlan/patch-1
Resource fails when fqdn is not set.
2016-06-15 14:11:26 +02:00
David Schmitt
86a51fd5bf Merge pull request #852 from jtopper/use_fact_for_mysqld_version
[MODULES-3441] Discover mysql version using facts
2016-06-15 11:29:19 +01:00
Jon Topper
ec5450ec75 Use facts for mysqld version discovery
Per https://tickets.puppetlabs.com/browse/MODULES-3441, the mysql
module has behaviour which varies by server version. The version is
discovered by running mysqld -V. On hosts without a MySQL server
package install, this fails, which means that contrary to the README,
it's not actually possible to use this module to manage a remote db.

This PR moves the version string discovery into a new fact,
mysqld_version which is used by the provider. This makes it possible
to configure the db version with a custom fact when a remote db
(eg AWS RDS) is being managed.
2016-06-15 10:43:50 +02:00
Bryan Jen
6146d93b67 Merge pull request #840 from aperto/master
Fix global parameter usage in backup script
2016-06-14 11:01:35 -07: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
Hunter Haugen
52477c0d43 Merge pull request #851 from puppetlabs/3.8.x
Mergeback 3.8.x
2016-05-31 13:54:26 -07:00
Bryan Jen
7cd9dda3a8 Merge pull request #850 from jbondpdx/3.8.x
edits on Percona usage example
2016-05-27 11:04:10 -07:00
jbondpdx
16f1056863 edits on Percona usage example 2016-05-27 10:34:02 -07:00
Hunter Haugen
b812ae3948 Merge pull request #849 from bmjen/rel-prep
Release prep for 3.8.0
2016-05-26 14:32:17 -07:00
Bryan Jen
b40d533365 Release prep for 3.8.0 2016-05-26 14:29:37 -07:00
TP Honey
269c913b66 Merge pull request #848 from bmjen/fix-backup
Skips mysqlbackup.sh tests on MySQL 5.7+
2016-05-26 21:15:51 +01:00
Bryan Jen
e2fad83c1c Skips mysqlbackup.sh tests on MySQL 5.7+ 2016-05-26 11:18:27 -07:00
Bryan Jen
1e8a537468 (maint) Switches nanliu-staging dependency to puppet-staging 2016-05-25 08:27:46 -07:00
TP Honey
9fc34d49f0 Merge pull request #847 from DavidS/revert-mariadb-defaults
Revert "Use mariadb by default for Debian Jessie (#845)"
2016-05-25 12:26:48 +01: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
Hunter Haugen
a563fcbb09 Merge pull request #846 from puppetlabs/3.7.x
Mergeback 3.7.x
2016-05-24 18:37:49 -07:00
David Schmitt
af85cf7dfb Use mariadb by default for Debian Jessie (#845) 2016-05-24 09:50:08 -07:00
David Schmitt
bbe8f2217c Merge pull request #842 from jjagodzinski/patch-3
Find MySQL 5.5 installation on CentOS
2016-05-24 16:30:40 +01:00
Jarosław Jagodziński
7d2ab4e921 Find MySQL 5.5 installation on CentOS #832
MySQL from CentOS SCL repository is installed in different location. You should also check for binaries in this location.
Without this change puppet returns error like: Could not find a suitable provider for mysql_datadir
2016-05-23 12:17:09 +02:00
Martin Mörner
6cac0384ad Fix global parameter usage in backup script
If mysqldump uses --defaults-extra-file mysql should use the same. Otherwise settings like different socket paths etc. will not work. Preferably this should be detected via test cases, as backups are quite important...
2016-05-20 10:11:25 +02: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
Bryan Jen
f8ef652e2d Merge pull request #838 from glorpen/scripts
Support mysql_install_db script on Gentoo
2016-05-19 10:13:18 -07:00
David Schmitt
cb0b0a6d62 Merge pull request #837 from megianni/master
Fixed an issue with Amazon linux major release 4 installation
2016-05-19 15:44:10 +01:00
Arkadiusz Dzięgiel
41e4753bd2 Support mysql_install_db script on Gentoo
On Gentoo, mysql_install_db script is installed into /usr/share/mysql/scripts
and therefore is not found by mysql_datadir type.
This commit adds scripts path to ENV['PATH'] so it can be found.
2016-05-19 12:20:51 +02: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
JT (Jonny)
d5d2de7719 Merge pull request #836 from fschndr/master
default group for logfiles on Debian/Ubuntu should be adm
2016-05-16 13:33:24 +01:00
Fabian
cffc883e27 default group for logfiles on Debian/Ubuntu should be adm 2016-05-12 17:11:29 +02:00
JT (Jonny)
3e3cd55e04 Merge pull request #830 from fvanboven/module-2111-replication
(MODULES-2111) Add the system database to user related actions.
2016-05-10 11:30:28 +01:00
JT (Jonny)
13a8d807d5 Merge pull request #828 from s-t-e-v-e-n-k/mysql-type-xenial
Remove mysql regex when checking type
2016-05-09 18:39:07 +01:00
JT (Jonny)
2cf6000c55 Merge pull request #834 from jonnytpuppet/alwiesner/master
Check that /var/lib/mysql actually contains files.
2016-05-09 18:36:48 +01:00
Al Wiesner
06fe1f9abb Check that /var/lib/mysql actually contains files.
MySQL-server-advanced installs install the 'mysql' directory in /var/lib/mysql by default,
therefore the check fails and does not run mysql_install_db.
Check is adjusted to check if any files exist in the directory.
2016-05-09 18:35:48 +01:00
Igor Galić
9801483727 Merge pull request #831 from fraenki/freebsd_mysqld
make sure we find mysqld on FreeBSD
2016-05-07 14:10:10 +02:00
Frank Wall
e52a669410 make sure we find mysql commands on FreeBSD 2016-05-06 01:45:46 +02:00
Frank van Boven
b8d301527e (MODULES-2111) Add the system database to user related tables.
Change the behaviour of applying user and grant related changes to use
the system database of MySQL.

This is a workaround to fix a bug in MySQL
(https://bugs.mysql.com/bug.php?id=65923) that causes users and grants
to be replicated, even if the "mysql" database should not be replicated.
2016-05-02 14:52:44 +02:00
Steve Kowalik
c63e318df8 Remove mysql regex when checking type
Since the default MySQL return type is 'mysql', only check for MariaDB
and Percona specially.
2016-04-29 14:40:30 -05:00
Hunter Haugen
2603411dac Merge pull request #824 from ih84ds/patch-1
Default mysqld_type should be "mysql"
2016-04-25 16:29:21 -07:00
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
ih84ds
5695cef4a6 Default mysqld_type should be "mysql"
Default mysqld_type return value should be "mysql" if another type is not detected. Returning nil breaks mysql 5.7.11 on Ubuntu (at least) due to the conditional used in mysql_user provider.
2016-04-14 17:55:22 -05: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