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
Lars Kellogg-Stedman
23a4a362a0
[#puppethack] use of mysql::db without mysql::server
...
This removes the hard dependencies on mysql::server from
manifests/db.pp. This permits one to use this module to manage databases
in an existing server, possibly located on a remote host (with a
properly configured /root/.my.cnf).
2015-07-30 15:53:24 +02:00
TP Honey
f9359624f0
Merge pull request #732 from DavidS/dont_print_root
...
(maint) don't print diff root password in diff
2015-07-14 12:16:00 +01:00
tphoney
8f628b8d73
(maint) don't print diff root password in diff
...
For puppet versions that support it, suppress diffing root's password.
2015-07-14 11:52:34 +01:00
tphoney
d2b33b5af2
dont print diff root password in diff
...
puppet 2.7 doesnt support show_diff
hash alignment
2015-06-29 16:43:35 +01:00
Drew Fisher
aba6280a49
Add Solaris support to MySQL module
2015-06-25 09:33:56 -06:00
Timo Goebel
7ea4a748c2
fix Evaluation Error with future parser
2015-06-23 19:04:39 +02:00
Travis Fields
ac6ae7140e
(maint) Package was renamed in server::install
...
- As a result of rename several underlying dependencies broke
this is to update the require dependencies
2015-06-18 13:55:22 -07:00
Yanis Guenane
29788fb4c4
(MODULES-2077) Fixes wrong dependency variable
...
Currently the package dependency relies on the service name when it
should be relying on the package name.
2015-05-27 17:05:38 +02:00
Zachary Dovel
4bab65edcb
Fixed server package name so it isn't hardcoded to mysql
2015-05-27 13:27:17 +02:00
Seth Lyons
dc9dcee4fe
update to proper defaults for freebsd
2015-05-12 15:26:50 -04:00
Travis Fields
d3901f205a
(fix) - Change default for mysql::server::backup to ignore_triggers => false
...
- Update spec acceptance test to check for which version is currently installed prior to testing
2015-05-12 09:45:10 -07:00
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
Jesse Cotton
a26b80d750
Remove default install root password if set
2015-03-17 15:21:07 +00: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