Travis Fields
9dad94a8c6
(fix) - Fix issue where fact is unknown at start
...
- Resolve issue where if known and failed versioncmp would result in idempotency issue on second run
2015-05-11 09:36:35 -07:00
Travis Fields
8b1fa24479
(fix) - Fix an issue were we assume triggers work
...
- There are older versions of mysql that do not support the privilege TRIGGER and need to change default to not include
http://dev.mysql.com/doc/refman/5.0/en/grant.html
'MySQL does not support the standard SQL UNDER privilege, and does not support the TRIGGER privilege until MySQL 5.1.6'
- Updated tests to have both 5.1.6 and 5.0.11 tests for mysql_version fact
2015-05-08 08:51:38 -07:00
Morgan Haskel
e4b4afd000
Merge pull request #683 from eems-leo/remove-old-root-pass
...
Remove references to old_root_password (cleanup)
2015-05-05 12:10:56 -07:00
Steven C. Saliman
1018a0370a
Cleaned up the privilege assignment in the mysqldump backup script
2015-04-30 14:21:08 -06:00
Steven C. Saliman
49f273a42c
Made the 'TRIGGER'privilege of mysqldump backups depend on whether or not we are actually backing up triggers
2015-04-30 12:37:38 -06:00
Steven C. Saliman
ec14b87a81
Added options for including/excluding triggers and routines, and fixed a permission problem that was preventing triggers from being backed up
2015-04-30 08:01:06 -06:00
Julien Pivotto
c2b0b4cb2c
Split package installation and database install
...
The current install pattern used by this module is the following:
1. Install package
2. Install the DB
3. Make the config files
In some cases this prevents MySQL to start, because some variables in
the config file have an impact on the DB installation.
Example with a custom innodb_data_file_path:
[ERROR] InnoDB: space header page consists of zero bytes in data file
/var/lib/mysql/ibdata
This commit changes the order to do:
1. Install package
2. Make the config files
3. Install the DB
2015-04-23 13:17:08 +02:00
Maxime VISONNEAU
2b9e777637
Bugfix on Xtrabackup crons
2015-04-21 14:25:11 +02:00
Dmitry Melanchenko
6a79d26838
references to README.md and default values were added to workaround warnings from puppet-lint
2015-04-15 21:25:37 +00:00
Morgan Haskel
298242e043
MODULES-1928 - allow log-error to be undef
...
Wrap the file resource so that this doesn't explode if log-error is
undef. This is required for syslogging.
2015-04-13 17:05:22 -07:00
Igor Galić
eb3fa4e9f5
Merge pull request #697 from fraenki/freebsd_support
...
fix FreeBSD support for backups
2015-04-13 15:39:15 +02:00
Morgan Haskel
c2ec74b1b5
Merge pull request #687 from igalic/provider-regr
...
mysql backup: fix regression in mysql_user call
2015-04-08 15:35:25 -07:00
Frank Wall
a2faed23ac
fix FreeBSD support for backups
2015-03-31 12:58:49 +02:00
Sebastian Reitenbach
5116883111
Fix regression introduced by adding OpenBSD support.
...
Add a $mysql_group parameter, and use that instead of the $root_group
parameter to define the group membership of the mysql error log file.
2015-03-18 08:47:25 +01:00
Marc Remy
04b806044a
Manage service only if managed
...
In the case of an unmanaged mysql service, defined with:
class {'::mysql::server':
[...]
service_manage => false,
[...]
}
We have the following error:
Undefined variable "service_ensure"
In this case, we don't want to have it "started" or "stopped", as it is
managed by another application (in our case by pacemaker).
This patch resolve this issue, by setting service_ensure to undef, in the
case of an unmanaged service.
2015-03-16 12:58:54 +01:00
Jesse Cotton
5b692a8f62
Deprecate mysql::server::old_root_password
2015-03-13 13:58:04 +00:00
Igor Galić
facb57a108
Merge pull request #567 from buzzdeee/master
...
Add OpenBSD support.
2015-03-12 10:55:17 +01:00
Igor Galić
32329b77b7
Merge pull request #672 from timmooney/master
...
Only set up ordering between the config file and the service if we're managing the config file.
2015-03-11 14:50:30 +01:00
Sebastian Reitenbach
db72fe8d86
Add OpenBSD support, only for OpenBSD -current, since
...
the recent switch to mariadb.
2015-03-11 14:46:29 +01:00
Igor Galić
1c3bf95e21
mysql backup: fix regression in mysql_user call
...
due to a mishappen rebase, in #649 , we introduced a regression fixed
which was fixed in #655 .
how come our tests don't catch this?
2015-03-05 14:33:44 +01:00
Morgan Haskel
7ee3b8b708
Whitespace fix
2015-03-02 11:27:56 -08:00
Morgan Haskel
7a3fe1ca00
Merge pull request #617 from juniorsysadmin/package-manage-parameter
...
(MODULES-1143) Add package_manage parameters
2015-02-27 12:06:25 -08:00
Hunter Haugen
ce43899af3
(MODULES-1804) Allow override of log-error
...
The mysqld log-error setting may be passed by override_options, but
server/service.pp was not using the overridden value. This fixes that.
2015-02-27 09:54:00 -08:00
Morgan Haskel
c1191f1230
PR 654 was incorrectly using stdlib dirname
...
puppetlabs-mysql has a dependency on stdlib 3.2.0, which does not
include the dirname function.
2015-02-24 11:08:29 -08:00
Igor Galić
e323f69c04
Merge pull request #654 from NoodlesNZ/logbindir
...
Check for full path for log-bin to stop puppet from managing directory “."
2015-02-24 08:49:11 +01:00
Travis Fields
51d66a53ab
Fix lint issues due to merging of PR #649
2015-02-19 10:55:24 -08:00
Igor Galić
cb142f414d
Merge pull request #649 from dveeden/newbackupprovider
...
Use backup providers
2015-02-19 16:06:42 +01:00
David Gurtner
b3c33f0a13
fix bug in GH-578
...
the recently added feature to support galera by allowing independent
creation of the root@localhost user in the DB and the /root/.my.cnf
file contains a bug.
specifically the .my.cnf file resource still requires the root@localhost
resource, even when it is not available.
this fixes the issue by making the dependency conditional.
2015-02-16 17:01:18 +01:00
Tim Mooney
24eca014b8
Only set up ordering between the config file and the service if we're
...
managing the config file.
2015-02-12 12:37:37 -06:00
juniorsysadmin
f5a693b826
(MODULES-1143) Add package_manage parameter
...
This patch adds a package_manage parameter for both mysql::server and
mysql::client
2015-02-12 13:33:36 +11:00
Daniël van Eeden
58508b772a
Use backup providers
...
Add MySQL Enterprise Backup and Percona XtraBackup
2015-02-11 22:27:35 +01:00
Nick Le Mouton
dc711561d7
Check for full path for log-bin to stop puppet from managing directory “.”
2015-02-12 08:19:54 +11:00
Morgan Haskel
2635469f0b
lint cleanup
2015-02-09 15:30:55 -08:00
Morgan Haskel
b9fbba3b0d
Merge pull request #578 from franzs/new_root_options
...
Add new parameters create_root_user and create_root_my_cnf.
2015-02-09 14:13:07 -08:00
Morgan Haskel
96f4d164a4
MODULES-1759: Remove dependency on stdlib >=4.1.0
...
Backported dirname => mysql_dirname since updating dependency to stdlib
4.1.0 is backwards incompatible with some versions of PE.
2015-02-09 12:34:44 -08:00
Rob Nelson
e08aa011f1
(MODULES-1731) Invalid parameter 'provider' removed from mysql_user instance.
2015-01-30 12:49:20 +00:00
TP Honey
1a87bae020
Merge pull request #637 from dveeden/account_localhost
...
Do the right thing when fqdn==localhost
2015-01-22 10:36:01 -08:00
Daniël van Eeden
c04fed1066
When fqdn==localhost account security breaks
...
This is because the root@localhost account is already
defined.
Remove localdomain accounts if fqdn is localhost
2015-01-18 15:02:17 +01:00
juniorsysadmin
2088fb8b36
Fix lint warning in server/service.pp
2015-01-11 15:35:10 +11:00
Morgan Haskel
b20f04330c
Future parser fix in params.pp
2014-12-30 09:45:54 -08:00
Igor Galić
d3f7254ecc
Merge pull request #616 from takumin/install_db_with_freebsd
...
mysql_install_db freebsd support
2014-12-23 18:03:25 +01:00
Igor Galić
5f62e6d455
Merge pull request #615 from KlavsKlavsen/master
...
ensure mysql-config-file and server package is in place before trying to...
2014-12-22 10:32:35 +01:00
Armin ranjbar
263a9fa210
useless whitespace removed
2014-12-19 18:54:51 +03:30
Armin ranjbar
9f9061ea8f
under Debian 8 package name for ruby mysql biding is called ruby-mysql, just like trusty.
2014-12-19 17:03:46 +03:30
Morgan Haskel
a367b3e1e4
Clean up lint warnings
2014-12-16 11:19:04 -08:00
Morgan Haskel
3c872abcd2
Remove mysqltuner, fetch with staging instead
...
mysqltuner is licensed under GPL so we don't want to package it with the
module.
2014-12-16 10:52:39 -08:00
takumi
7d3962fc28
mysql_install_db freebsd support
2014-12-05 18:45:38 +09:00
Klavs Klavsen
a8fd4d375b
ensure mysql-config-file and server package is in place before trying to start service - to ensure it gets started with correct settings and does not try to enable service before it actually exists :)
2014-12-04 16:14:09 +01:00
Colleen Murphy
e23da83230
Fix operating system release fact for SLES
...
PE on SLES 11 does not support the operatingsystemmajrelease fact.
2014-11-26 15:25:37 -08:00
Colleen Murphy
25b65342b3
Add support for SLES 12
...
SLES 12 has different package names for the server and client. It also
doesn't seem to want to start if basedir is defined.
2014-11-26 12:57:44 -08:00