Commit graph

1283 commits

Author SHA1 Message Date
David Schmitt
2fa39c65c7 (MODULES-3581) modulesync [067d08a] 2016-07-08 13:34:27 +01:00
Nemanja Delic
041ef06c78 parametrize xtradb package name (#860) 2016-07-01 14:45:35 +01:00
Hunter Haugen
2175f7de82 Merge pull request #861 from puppetlabs/modulesync
{maint} modulesync 0794b2c
2016-06-30 10:54:32 -07:00
tphoney
1ebbada4d7 {maint} modulesync 0794b2c 2016-06-30 15:13:57 +01:00
Bryan Jen
caec312e42 Merge pull request #857 from aerostitch/add_mariadb_ex_doc
Add example of MariaDB server installation on Ubuntu
2016-06-28 15:37:36 -07: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
David Schmitt
2928c66268 Merge pull request #859 from tphoney/user_unit_test_fix
fixing the failing unit tests for mysql_user
2016-06-21 14:32:54 +01:00
tphoney
f183e492d9 fixing the failing unit tests for mysql_user 2016-06-21 13:35:10 +01:00
Igor Galić
7370716176 Merge pull request #858 from rnelson0/patch-1
Support for puppet/staging 2.0.0
2016-06-18 00:33:25 +02:00
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
Joseph Herlant
21da7dc08d Add example of MariaDB server installation on Ubuntu 2016-06-15 20:15:09 -07: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