Commit graph

1296 commits

Author SHA1 Message Date
Travis Fields
77b7dbad7f Revert "(#MODULES-1058) root_password.pp cannot create /root/.my.cnf due to depe..." 2015-02-03 13:51:03 -08:00
Igor Galić
a839489add Merge pull request #651 from lodgenbd/bug/master/root_account_fix
(#MODULES-1058) root_password.pp cannot create /root/.my.cnf due to depe...
2015-01-30 16:03:08 +01:00
Rob Nelson
e08aa011f1 (MODULES-1731) Invalid parameter 'provider' removed from mysql_user instance. 2015-01-30 12:49:20 +00:00
Daniël van Eeden
279c13b5e3 Return an empty string for an empty input.
https://tickets.puppetlabs.com/browse/MODULES-1676

This is identical to what PASSWORD('') in MySQL does:

5.6.22-debug-log> CREATE USER 'testpwd'@'localhost' IDENTIFIED BY 'foo';
Query OK, 0 rows affected (0.03 sec)

5.6.22-debug-log> SELECT User,Host,Password FROM mysql.user WHERE
User='testpwd';
+---------+-----------+-------------------------------------------+
| User    | Host      | Password                                  |
+---------+-----------+-------------------------------------------+
| testpwd | localhost | *F3A2A51A9B0F2BE2468926B4132313728C250DBF |
+---------+-----------+-------------------------------------------+
1 row in set (0.01 sec)

5.6.22-debug-log> SET PASSWORD FOR 'testpwd'@'localhost' = PASSWORD('');
Query OK, 0 rows affected (0.00 sec)

5.6.22-debug-log> SELECT User,Host,Password FROM mysql.user WHERE
User='testpwd';
+---------+-----------+----------+
| User    | Host      | Password |
+---------+-----------+----------+
| testpwd | localhost |          |
+---------+-----------+----------+
1 row in set (0.00 sec)
2015-01-28 21:08:29 +01:00
Igor Galić
b98c0567ce Merge pull request #652 from casharma/no_more_init
there is no class called mysql anymore (to test)
2015-01-28 16:14:01 +01:00
Carthik Sharma
2a17e54ab3 there is no class called mysql anymore (to test) 2015-01-27 17:20:37 -08:00
Brad Lodgen
c9c5eb3fd1 (#MODULES-1058) root_password.pp cannot create /root/.my.cnf due to dependency
The dependency of creating the root .my.cnf file is a command which requires
the .my.cnf file. This patch removes that dependency. Without removing the
dependency, if a user already has a mysql server installed with a root password
and no root .my.cnf file, the module application will fail.
2015-01-27 17:42:03 -06:00
Morgan Haskel
74e19691a2 Merge pull request #650 from cmurphy/fix_fix_tests
Fix acceptance tests from #648
2015-01-27 15:08:02 -08:00
Colleen Murphy
551d22fb84 Fix acceptance tests from #648
Missed Lucid the first time.
2015-01-27 15:05:37 -08:00
Morgan Haskel
d5defe2535 Merge pull request #648 from cmurphy/fix_tests
Fix acceptance tests from #641
2015-01-27 13:46:54 -08:00
Colleen Murphy
80236d1f3a Fix acceptance tests from #641 2015-01-27 13:42:24 -08:00
Igor Galić
8dbe7c030d Merge pull request #641 from dveeden/plugin
Add type & provider for managing plugins
2015-01-27 14:39:40 +01:00
Daniël van Eeden
74132ec038 Add type & provider for managing plugins 2015-01-26 15:03:45 +01:00
Daniël van Eeden
367fcf06af Support authentication plugins
This uses CREATE USER xxx IDENTIFIED WITH yyy

For tests:
 unix_socket is not loaded by default, so this might require:
 install plugin unix_socket soname 'auth_socket.so';

 The mysql_native_password plugin is available by default and
 allows you to also set a password.

Try to make it compatible with MySQL < 5.5.7 it uses version
specific code with "/*!50508 stmt */"
2015-01-24 17:28:17 +01:00
Morgan Haskel
0623654438 Merge pull request #644 from puppetlabs/revert-640-auth-plugins
Revert "Support for authentication plugins"
2015-01-22 11:36:19 -08:00
Colleen Murphy
ccf37e7c8d Revert "Support for authentication plugins" 2015-01-22 11:27:41 -08: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
Morgan Haskel
9a613bbc33 Merge pull request #638 from dveeden/doc-secure
Make sure the example is somewhat secure
2015-01-22 10:34:42 -08:00
Hunter Haugen
bcb615057b Merge pull request #640 from dveeden/auth-plugins
Support for authentication plugins
2015-01-22 10:31:19 -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
Daniël van Eeden
305b0d2a87 Support authentication plugins
This uses CREATE USER xxx IDENTIFIED WITH yyy

For tests:
 unix_socket is not loaded by default, so this might require:
 install plugin unix_socket soname 'auth_socket.so';

 The mysql_native_password plugin is available by default and
 allows you to also set a password.
2015-01-17 18:41:37 +01:00
Daniël van Eeden
d45b6a8097 Make sure the example is somewhat secure 2015-01-17 18:27:04 +01:00
Colleen Murphy
9f5539cb1d Merge pull request #639 from juniorsysadmin/fix-service-lint-warning
Fix lint warning in server/service.pp
2015-01-10 23:27:18 -08:00
juniorsysadmin
2088fb8b36 Fix lint warning in server/service.pp 2015-01-11 15:35:10 +11:00
Morgan Haskel
23c192df9f Merge pull request #634 from cyberious/ResourceTest
MODULES-1520 add test to assert it does not break
2015-01-02 11:52:06 -05:00
Travis Fields
8d7ab1d9c6 Merge pull request #635 from mhaskel/MODULES-1520
MODULES-1520 - update username validation
2015-01-02 08:50:34 -08:00
Travis Fields
d9d02718b8 MODULES-1520 add test to assert it does not break 2014-12-31 16:48:54 -08:00
Morgan Haskel
f92a24ef3d MODULES-1520 - update username validation
Don't fail on validation where the user isn't quoted with special
characters. The providers quote these strings by default.
2014-12-31 11:50:48 -08:00
Colleen Murphy
4203867c01 Merge pull request #632 from mhaskel/future_parser_fix
Future parser fix in params.pp
2014-12-30 10:01:23 -08:00
Morgan Haskel
b20f04330c Future parser fix in params.pp 2014-12-30 09:45:54 -08:00
Morgan Haskel
efeb01cee6 Merge pull request #631 from cmurphy/master
Add IntelliJ files to the ignore list
2014-12-29 11:22:49 -08:00
Colleen Murphy
83e87f5198 Add IntelliJ files to the ignore list 2014-12-29 10:41:12 -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
Igor Galić
457194ce21 Merge pull request #629 from pishro-oss/master
under Debian 8 package name for ruby mysql biding is called ruby-mysql, ...
2014-12-19 20:37:04 +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
Hunter Haugen
ea7d66a7e4 Merge pull request #628 from mhaskel/merge_3.1.x_into_master
Merge 3.1.x into master
2014-12-16 17:12:00 -08:00
Colleen Murphy
09325e6451 Merge pull request #627 from mhaskel/metadata_fix
Forgot to add SLES12 to metadata. yay.
2014-12-16 16:47:55 -08:00
Morgan Haskel
b12890da3c Forgot to add SLES12 to metadata. yay. 2014-12-16 16:46:47 -08:00
Hunter Haugen
bb12e9db7a Merge pull request #626 from mhaskel/3.1.0-prep
3.1.0 prep
2014-12-16 11:57:38 -08:00
Morgan Haskel
c7f179d977 3.1.0 prep 2014-12-16 11:53:34 -08:00
Travis Fields
120e6b1dc8 Merge pull request #625 from mhaskel/lint_cleanup
Clean up lint warnings
2014-12-16 11:29:40 -08:00
Morgan Haskel
a367b3e1e4 Clean up lint warnings 2014-12-16 11:19:04 -08:00
Travis Fields
407e869b0f Merge pull request #624 from mhaskel/FM-2112
Remove mysqltuner, fetch with staging instead
2014-12-16 11:17: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
Hunter Haugen
468986d85f Merge pull request #623 from mhaskel/FM-2111
Fix issues introduced in puppetlabs/puppetlabs-mysql#612
2014-12-15 09:23:19 -08:00
Morgan Haskel
a611686530 Fix issues introduced in puppetlabs/puppetlabs-mysql#612
The regex updates caused failures in some places where it previously
(correctly) worked.
2014-12-12 17:36:46 -08:00
Hunter Haugen
2f9820ced8 Merge pull request #622 from mhaskel/puppet_not_shell
Use puppet() instead of shell() to install module dependencies
2014-12-12 13:28:02 -08:00
Morgan Haskel
93615453b5 Use puppet() instead of shell() to install module dependencies 2014-12-12 12:55:31 -08:00