Commit graph

769 commits

Author SHA1 Message Date
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
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
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
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
Igor Galić
7b16b126c8 Merge pull request #526 from spil-jaak/bug/master/quote_fixing
(MODULES-1096) Fix double quote / single quote issue in params.pp.
2014-06-06 16:10:38 +02:00
Jaakko
96a64a9793 (MODULES-1096) Fix double quote / single quote issue in params.pp.
To follow style guide advice
(http://docs.puppetlabs.com/guides/style_guide.html#quoting) and make
puppet-lint happy, manifests should only use double quotes with strings that
contain variables.

This commit fixes the lone exception to this rule.
2014-06-06 11:48:56 +02:00
Ashley Penney
3c2522dbc3 Merge pull request #496 from apenney/fix-up-gemfile
Allow rspec-beaker to update.
2014-06-05 13:08:21 -04:00
Ashley Penney
d884e2fc1e Merge pull request #522 from cmurphy/fix_mysql_grant_MODULES-1040
Require title of mysql_grant resource to match form user/table
2014-06-05 13:07:40 -04:00
Igor Galić
b3ecc7bdc2 Merge pull request #523 from davidmmiller/fix/bug/MODULES-723
fix param client_package_ensure
2014-06-05 12:22:34 +02:00
Igor Galić
357ad7652f Merge pull request #499 from digitalyuki/fix-example-docs
Fix example docs
2014-06-05 12:21:58 +02:00
Igor Galić
b39ebdcf74 Merge pull request #505 from larsks/bz/1093367
lowercase hostname values in qualified usernames
2014-06-05 12:17:04 +02:00
Colleen Murphy
07b661dcea Require title of mysql_grant resource to match form user/table
This addresses https://tickets.puppetlabs.com/browse/MODULES-1040.
The user parameter is required to have the form username@host. A grant
is identified in the instances method by a name of the form
username@host/table. The resource will fail to be identified as already
existing if the name given to the resource does not match this form.
2014-06-04 10:44:36 -07:00
David Miller
18df1d08e5 fix param client_package_ensure 2014-06-04 10:45:46 -04:00
digitalyuki
5239950da8 Edited examples in documentation to reflect actual usage of hashed parameters
Edited the puppet markup

Made changes as suggested, with one-liner comment added to refer to Overrides for examples of the hash structure
2014-06-04 10:31:02 -04:00
Lars Kellogg-Stedman
0afb8f09e8 lowercase hostname values in qualified usernames
MySQL/MariaDB automatically downcase hostnames:

  MariaDB [mysql]> create user 'testuser'@'HOSTNAME';
  MariaDB [mysql]> select user,host from user where host = 'hostname';
  +----------+----------+
  | user     | host     |
  +----------+----------+
  | testuser | hostname |
  +----------+----------+

This causes problems when a mysql_user or datbase_user has an hostname
with non-lowercase characters:

  database_user { "root@HOSTNAME":
    ensure => absent,
  }

The SELECT statements used to determine if the user exists will fail
because the comparisons use "HOSTNAME" but the database has "hostname".
This patch forces the hostname part of "user@hostname" to lower case in
the custom type definitions.
2014-06-04 09:30:45 -04:00
Lukas Bezdicka
26204437ef Prametrize !includedir
Hardcoded path provided by puppet is now replaced by providing only the final directory as on
most systems includedir is provided by package and it's matter of user to provide it if he
wants to override it. This also allows disabling including at all.
2014-06-04 14:07:49 +02:00
Igor Galić
50ff0a9944 Merge pull request #524 from blkperl/be_truthy_rspec
RSpec renamed be_true to be_truthy in 3.0
2014-06-04 12:14:28 +02:00
William Van Hevelingen
669466c315 RSpec renamed be_true to be_truthy in 3.0
This commits updates the spec tests to use the renamed function.
2014-06-03 23:31:19 -07:00
Igor Galić
6769677e74 Merge pull request #510 from Aethylred/dev_libs
Install MySQL client and daemon dev libraries.
2014-06-03 06:34:43 +02:00
Ashley Penney
4375d76c09 Merge pull request #521 from apenney/fix-eq-tests
Fix test so it doesn't fail on deprecation warnings.
2014-05-29 14:49:26 -04:00
Ashley Penney
8f73cfcce0 Fix test so it doesn't fail on deprecation warnings. 2014-05-29 14:49:00 -04:00
Ashley Penney
5f86105e6a Merge pull request #519 from apenney/fix-test
Fix a syntax error in one of the tests.
2014-05-21 11:40:05 -07:00
Ashley Penney
f5a09f6cb9 Fix a syntax error in one of the tests. 2014-05-21 11:24:33 -07:00
Aaron Hicks
b2090194f5 Install MySQL client and daemon dev libraries. 2014-05-19 09:41:25 +12:00
Morgan Haskel
c57600e4f0 Merge pull request #516 from apenney/fix-platforms
Add RHEL7 and Ubuntu 14.04.
2014-05-13 16:21:56 -04:00