Commit graph

968 commits

Author SHA1 Message Date
Colleen Murphy
d6b16420bb Fix lint warnings and ensure lint fails on warnings 2015-02-12 12:09:55 -08:00
Colleen Murphy
b64ca51cfb Merge pull request #669 from dveeden/lint-fix
Fix rake lint error in examples/server/config.php
2015-02-11 12:49:30 -08:00
Daniël van Eeden
f2bfe9e0fb Fix rake lint error in examples/server/config.php
examples/server/config.pp - ERROR: trailing whitespace found on line 2
2015-02-11 14:31:47 +01:00
Colleen Murphy
7e81906e20 Merge pull request #668 from mhaskel/merge_3.2.x_to_master
Merge 3.2.x to master
2015-02-10 12:50:26 -08:00
Hunter Haugen
f93fbe3f5d Merge pull request #667 from mhaskel/tests_to_examples
move tests to examples
2015-02-09 15:48:59 -08:00
Morgan Haskel
d665e8fd17 move tests to examples 2015-02-09 15:47:12 -08:00
Hunter Haugen
a51b983871 Merge pull request #664 from mhaskel/3.2.0-prep
3.2.0 prep
2015-02-09 15:44:45 -08:00
Hunter Haugen
83978058de Merge pull request #665 from mhaskel/lint_fixes
lint cleanup
2015-02-09 15:39:14 -08:00
Morgan Haskel
9f84ef71fe 3.2.0 prep 2015-02-09 15:36:06 -08:00
Morgan Haskel
2635469f0b lint cleanup 2015-02-09 15:30:55 -08:00
Morgan Haskel
b9fbba3b0d Merge pull request #578 from franzs/new_root_options
Add new parameters create_root_user and create_root_my_cnf.
2015-02-09 14:13:07 -08:00
Hunter Haugen
b6ab888e08 Merge pull request #661 from mhaskel/MODULES-1759
MODULES-1759: Remove dependency on stdlib >=4.1.0
2015-02-09 13:15:50 -08:00
Morgan Haskel
96f4d164a4 MODULES-1759: Remove dependency on stdlib >=4.1.0
Backported dirname => mysql_dirname since updating dependency to stdlib
4.1.0 is backwards incompatible with some versions of PE.
2015-02-09 12:34:44 -08:00
Hunter Haugen
b57191fb67 Merge pull request #655 from rnelson0/remove_provider
(MODULES-1731) Invalid parameter 'provider' removed from mysql_user instance.
2015-02-06 13:51:13 -08:00
Travis Fields
14d5813bc9 Merge pull request #660 from hunner/bump_stdlib
Bugfix: increase minimum stdlib
2015-02-06 13:40:06 -08:00
Hunter Haugen
8a828aa53d Bugfix: increase minimum stdlib
Mysql 3.1.0 included 08a66b7 which uses dirname() which was released in
stdlib 4.1.0. This change bumps the minimum stdlib up to 4.1.0
2015-02-06 12:56:01 -08:00
Hunter Haugen
b3a38a8dfe Merge pull request #645 from dveeden/auth-plugins
Support authentication plugins
2015-02-06 12:40:49 -08:00
Igor Galić
dc23fedabb Merge pull request #658 from hunner/fix_grant
Make grant autorequire user
2015-02-06 14:06:05 +01:00
Hunter Haugen
506292ae58 Make grant autorequire user
grants that happen before a user is created cause an ERROR 1396
2015-02-05 16:21:24 -08:00
Hunter Haugen
3fa70506c4 Merge pull request #646 from dveeden/emptypwd
Return an empty string for an empty input.
2015-02-05 10:39:28 -08:00
Hunter Haugen
fa66b38b58 Merge pull request #657 from cmurphy/rspec
Pin rspec gems
2015-02-04 12:03:26 -08:00
Colleen Murphy
1394bd9513 Pin rspec gems 2015-02-04 17:02:04 +01:00
Hunter Haugen
9192a9d0ad Merge pull request #656 from puppetlabs/revert-651-bug/master/root_account_fix
Revert "(#MODULES-1058) root_password.pp cannot create /root/.my.cnf due...
2015-02-03 13:53:08 -08:00
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