Commit graph

797 commits

Author SHA1 Message Date
Ashley Penney
bb205ad2f0 Remove all the deprecated code. 2014-08-08 14:13:22 -04:00
Morgan Haskel
c70fc13fc1 Merge pull request #552 from apenney/improve-graceful-failures
Handle graceful failure on RHEL4 and improve the messaging.
2014-08-08 12:27:26 -04:00
Ashley Penney
cf2ffc6821 Handle graceful failure on RHEL4 and improve the messaging. 2014-08-08 11:55:31 -04:00
Ashley Penney
5b10653882 Merge pull request #551 from apenney/fix-acceptance-tests
Fix acceptance/unit tests
2014-08-07 18:08:51 -04:00
Ashley Penney
138820b3b8 Don't check the variable here, we can trust mysql to work. 2014-08-07 17:53:26 -04:00
Hunter Haugen
1812fbca25 Rewrite some of the unit tests to work on more platforms.
This commit introduces puppet_facts, a gem that allows easier testing
against PE platforms.  We're using this gem to automatically parse the
metadata.json and test against appropriate versions of PE on platforms
we support.

We start by only running against centos-6-x86_64 and ubuntu 14.04 on a
regular basis but this is implemented as an ENV so it can be overwritten
by CI systems to test against all PE platforms.
2014-08-07 16:27:17 -04:00
Ashley Penney
994ac1a058 Rebuild the acceptance tests. 2014-08-07 15:52:19 -04:00
Ashley Penney
574d5d9dff Merge pull request #550 from apenney/merge-23
Merge 23
2014-08-07 15:51:43 -04:00
Ashley Penney
32393b6099 Merge branch '2.3.x' 2014-08-07 15:50:56 -04:00
Ashley Penney
bbc7f2b33e Merge pull request #517 from edvinasme/archlinux_support
Add Archlinux support
2014-07-24 13:22:07 -04:00
Ashley Penney
1eed53f328 Merge pull request #545 from rsauvatinet/master
Update mysqltuner.pl to version 1.3.0
2014-07-24 13:15:07 -04:00
I'm on Vacation until 18th of July
94e488fd3e Merge pull request #547 from rayl/master
Prevent ERROR 1008 in mysql_database provider
2014-07-24 12:14:41 +02:00
Ray Lehtiniemi
548952a6f9 Prevent ERROR 1008 in mysql_database provider
Check for database existence when dropping to prevent

  ERROR 1008 (HY000): Can't drop database 'test'; database doesn't exist

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
2014-07-23 21:41:16 -06:00
I'm on Vacation until 18th of July
70cafdc283 Merge pull request #509 from xbezdick/master
Parametrize !includedir
2014-07-23 12:38:18 +02:00
I'm on Vacation until 18th of July
2c463fc02e Merge pull request #540 from jsosic/patch-1
Fix problem with GRANT not recognizing backslash
2014-07-23 12:37:59 +02:00
I'm on Vacation until 18th of July
46643523ce Merge pull request #539 from stevesaliman/master
Grants for the backupuser should be conditional
2014-07-23 12:35:50 +02:00
I'm on Vacation until 18th of July
70e21202a9 Merge pull request #546 from igalic/notify-correct
Make sure we actually notify the service.
2014-07-23 12:35:01 +02:00
Igor Galić
ea0b1fe442 Make sure we actually notify the service.
fix for the fix in c2d02ff721
thanks to @edestecd
2014-07-23 12:03:00 +02:00
Rémi Sauvat
833c8fce1b Update mysqltuner.pl to version 1.3.0 2014-07-22 16:05:17 +02:00
Hunter Haugen
2b21f69fca Merge pull request #544 from strider/AddsCentOS7Support
Adds Support for CentOS and Scientific Linux 7
2014-07-21 15:47:42 -07:00
Gael Chamoulaud
7b3cdd234a Adds Support for CentOS and Scientific Linux 7
CentOS Project has adopted a new rule for versioning numbers. The major number
matches the RHEL major number, but the minor number is generated from the
release date. For example, CentOS 7.0.1406.

Uses $::operatingsystemmajrelease instead of $::operatingsystemrelease for
avoiding issue like "Comparison of String with 7 failed" for CentOS 7.

Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-07-21 20:13:26 +02:00
Travis Fields
c0f4372df0 Merge pull request #541 from apenney/231-release
Prepare a 2.3.1 release.
2014-07-15 09:18:03 -07:00
Ashley Penney
335f172698 Prepare a 2.3.1 release. 2014-07-15 11:31:12 -04:00
jsosic
356672342e Fix problem with GRANT not recognizing backslash
If database grant has backslash in database name (for example: example\_dev), then puppet will try to apply same resource every run because MySQL reports that table name with double backslash (for example: example\\_dev). By global replace of double backslash with single one, this issue is fixed.
2014-07-13 04:01:53 +02:00
Steve Saliman
30249552d4 Changed the backup user grant in backup.pp to use the ensure variable instead of always assuming 'present' 2014-07-11 11:25:10 -06:00
Edvinas Klovas
0f0d2e6815 Add Archlinux support
This commit adds Arch Linux support. Everything besides bindings for JAVA and
Ruby has been tested as properly working. JAVA and Ruby bindings cannot be
managed by puppet as official packages are not in official repositories but in
AUR instead. PHP bindings are installed by default with mysql/mariadb package so
there is no need to specify/install separate patches. To reflect this,
bindings.pp has been altered to throw a warning if user wants to install
PHP binding. It throws an error is user tries to install JAVA or Ruby binding.

Signed-off-by: Edvinas Klovas <edvinas@pnd.io>
2014-07-10 21:55:44 +02:00
Hunter Haugen
c6acbf5a53 Merge pull request #538 from laurenrother/master
Update TOC for accuracy
2014-07-10 10:56:53 -07:00
Lauren Rother
d4f7ff2599 Update TOC for accuracy 2014-07-10 10:54:35 -07:00
Hunter Haugen
52d44be30f Merge pull request #536 from apenney/mysql_install
Handle changing the datadir properly.
2014-07-08 14:55:11 -07:00
Ashley Penney
c2d02ff721 Make sure we notify the service. 2014-07-08 13:24:23 -04:00
Ashley Penney
5959715ff6 Rework the mysql initdb functionality.
This reworks a previously unmerged PR to clean up the code a little and
adds a test for it.
2014-07-08 12:53:20 -04:00
Reinhard Vicinus
6f5488827a run mysql_install_db if datadir is set annd mysql database is missing 2014-07-08 10:26:18 -04:00
Ashley Penney
c397688d69 Merge pull request #534 from cmurphy/master
Add validate and lint tasks to travis script
2014-07-03 17:42:56 -04:00
Colleen Murphy
a8faa45723 Add validate and lint tasks to travis script 2014-07-03 09:53:52 -07:00
Hunter Haugen
6c5d0775d6 Merge pull request #533 from cmurphy/master
Synchronize .travis.yml
2014-06-30 11:04:42 -07:00
Colleen Murphy
0f099478c4 Update Gemfile for .travis.yml defaults 2014-06-30 10:58:02 -07:00
Colleen Murphy
0d74fb67f5 Synchronize .travis.yml 2014-06-27 10:55:05 -07:00
Ashley Penney
8ac8fa3966 Merge pull request #532 from cmurphy/master
Start synchronizing module files
2014-06-26 13:59:20 -04:00
Colleen Murphy
66e3d2b52c Sync files 2014-06-25 17:23:29 -07:00
Colleen Murphy
f684e8a1f0 Add configuration file for modulesync
https://github.com/puppetlabs/modulesync
2014-06-25 16:15:14 -07:00
Igor Galić
f6e427c730 Merge pull request #530 from spil-jaak/bug/master/ignore_users_wo_grants_when_granting
Change grant provider to ignore grants for non existing users.
2014-06-17 13:54:30 +02:00
Jaakko
3cfbb581cc Change grant provider to ignore grants for non existing users.
In the grant provider users are fetched by querying mysql.user table. Grants
for those users are fetched using show grants for... syntax. This can lead to
errors, when some of the users in mysql.user table do not have currently
active grants.

This happens at least when MySQL is started with --skip-name-resolve option,
when there are users with the hostname part specified as a FQDN. Such users are
created by mysql_install_db. This leads to problems if mysql::account_security
is included for the node and skip-name-resolve is specified in override_options
hash for mysql::server.

Includes acceptance test for the change.
2014-06-17 13:07:56 +02:00
Igor Galić
4f4c68767e Merge pull request #528 from spil-jaak/bug/master/fix_bindings_acceptance_test
Fix acceptance test for mysql::bindings.
2014-06-13 14:26:39 +02:00
Jaakko
16002dfe09 Fix acceptance test for mysql::bindings.
Fix acceptance test for bindings to use correct parameter names, when
instantiating mysql::bindings class. Fix client and server dev package names
for couple of distros.
2014-06-11 18:01:16 +02:00
Igor Galić
517c872c4a Merge pull request #531 from igalic/ignore
ignore .bundle configuration directory
2014-06-11 13:55:25 +02:00
Igor Galić
8b47859ba6 ignore .bundle configuration directory 2014-06-11 13:54:10 +02:00
Hunter Haugen
f9dcac055b Merge pull request #529 from mhaskel/beaker-rspec-pinning
Beaker rspec pinning
2014-06-10 09:10:38 -07:00
Morgan Haskel
c57071213b Require at least beaker-rspec 2.2. 2014-06-10 11:29:30 -04:00
Travis Fields
510cd68fcd Merge pull request #527 from apenney/pin-rspec
Pin rspec
2014-06-09 08:55:13 -07:00
Ashley Penney
9d888a9c59 Pin rspec to 2.x. 2014-06-09 11:34:05 -04:00