Commit graph

967 commits

Author SHA1 Message Date
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
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
07225879e7 Merge branch '2.3.x' of https://github.com/puppetlabs/puppetlabs-mysql into 2.3.x 2014-05-29 14:50:03 -04:00
Ashley Penney
1eb20d4f78 Merge pull request #521 from apenney/fix-eq-tests
Fix test so it doesn't fail on deprecation warnings.
2014-05-29 14:49:52 -04: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
dc46a9a1ab Merge pull request #520 from mhaskel/2.3.0-prep
2.3.0 prep
2014-05-21 16:45:09 -07:00
Morgan Haskel
4e3a170780 Update PE version requirement. 2014-05-21 19:43:51 -04:00
Ashley Penney
2f3d0c1c89 Merge pull request #519 from apenney/fix-test
Fix a syntax error in one of the tests.
2014-05-21 11:40:22 -07: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
Ashley Penney
b507aa5252 Claim PE3.3 support. 2014-05-15 15:02:20 -04:00
Ashley Penney
404e060a8b Prepare 2.3.0 release. 2014-05-14 17:37:39 -04: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
Ashley Penney
f0ebd22da6 Add RHEL7 and Ubuntu 14.04. 2014-05-13 22:20:40 +02:00
Ashley Penney
4fe4a5d544 Merge pull request #515 from mhaskel/rhel5-fixes
Fixes to get tests running on RHEL5.
2014-05-13 14:41:42 -04:00