From 2635469f0b26753d4d32e59ee4fac4cce26cf1ad Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Mon, 9 Feb 2015 15:30:55 -0800 Subject: [PATCH 1/3] lint cleanup --- manifests/server/account_security.pp | 4 ++-- tests/mysql_plugin.pp | 8 ++++---- tests/mysql_user.pp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/manifests/server/account_security.pp b/manifests/server/account_security.pp index 68f6e85..07bdf01 100644 --- a/manifests/server/account_security.pp +++ b/manifests/server/account_security.pp @@ -9,8 +9,8 @@ class mysql::server::account_security { } if ($::fqdn != 'localhost.localdomain') { mysql_user { - [ "root@localhost.localdomain", - "@localhost.localdomain"]: + [ 'root@localhost.localdomain', + '@localhost.localdomain']: ensure => 'absent', require => Anchor['mysql::server::end'], } diff --git a/tests/mysql_plugin.pp b/tests/mysql_plugin.pp index ab76fc2..0a27788 100644 --- a/tests/mysql_plugin.pp +++ b/tests/mysql_plugin.pp @@ -3,16 +3,16 @@ class { 'mysql::server': } mysql::plugin{ 'validate_password': - ensure => present, - soname => $::osfamily ? { + ensure => present, + soname => $::osfamily ? { windows => 'validate_password.dll', default => 'validate_password.so' } } mysql::plugin{ 'auth_socket': - ensure => present, - soname => $::osfamily ? { + ensure => present, + soname => $::osfamily ? { windows => 'auth_socket.dll', default => 'auth_socket.so' } diff --git a/tests/mysql_user.pp b/tests/mysql_user.pp index 893a03e..c471868 100644 --- a/tests/mysql_user.pp +++ b/tests/mysql_user.pp @@ -21,8 +21,8 @@ mysql_user{ 'dan@%': } mysql_user{ 'socketplugin@%': - ensure => present, - plugin => 'unix_socket', + ensure => present, + plugin => 'unix_socket', } mysql_user{ 'socketplugin@%': From 9f84ef71fe27294b7cf309b34b47dee5eba8ed55 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Mon, 9 Feb 2015 15:34:47 -0800 Subject: [PATCH 2/3] 3.2.0 prep --- CHANGELOG.md | 23 +++++++++++++++++++++++ metadata.json | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c19ec4..4578626 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +##2015-02-09 - Supported Release 3.2.0 +###Summary +This release includes several new features and bugfixes, including support for various plugins, making the output from mysql_password more consistent when input is empty and improved username validation. + +####Features +- Add type and provider to manage plugins +- Add support for authentication plugins +- Add support for mysql_install_db on freebsd +- Add `create_root_user` and `create_root_my_cnf` parameters to `mysql::server` + +####Bugfixes +- Remove dependency on stdlib >= 4.1.0 (MODULES-1759) +- Make grant autorequire user +- Remove invalid parameter 'provider' from mysql_user instance (MODULES-1731) +- Return empty string for empty input in mysql_password +- Fix `mysql::account_security` when fqdn==localhost +- Update username validation (MODULES-1520) +- Future parser fix in params.pp +- Fix package name for debian 8 +- Don't start the service until the server package is installed and the config file is in place +- Test fixes +- Lint fixes + ##2014-12-16 - Supported Release 3.1.0 ###Summary diff --git a/metadata.json b/metadata.json index 745db7d..ea47cfd 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-mysql", - "version": "3.1.0", + "version": "3.2.0", "author": "Puppet Labs", "summary": "Installs, configures, and manages the MySQL service.", "license": "Apache-2.0", From d665e8fd172e44e436ca434b0585bd089b78c335 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Mon, 9 Feb 2015 15:47:12 -0800 Subject: [PATCH 3/3] move tests to examples --- {tests => examples}/backup.pp | 0 {tests => examples}/bindings.pp | 0 {tests => examples}/java.pp | 0 {tests => examples}/mysql_database.pp | 0 {tests => examples}/mysql_db.pp | 0 {tests => examples}/mysql_grant.pp | 0 {tests => examples}/mysql_plugin.pp | 0 {tests => examples}/mysql_user.pp | 0 {tests => examples}/perl.pp | 0 {tests => examples}/python.pp | 0 {tests => examples}/ruby.pp | 0 {tests => examples}/server.pp | 0 {tests => examples}/server/account_security.pp | 0 {tests => examples}/server/config.pp | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename {tests => examples}/backup.pp (100%) rename {tests => examples}/bindings.pp (100%) rename {tests => examples}/java.pp (100%) rename {tests => examples}/mysql_database.pp (100%) rename {tests => examples}/mysql_db.pp (100%) rename {tests => examples}/mysql_grant.pp (100%) rename {tests => examples}/mysql_plugin.pp (100%) rename {tests => examples}/mysql_user.pp (100%) rename {tests => examples}/perl.pp (100%) rename {tests => examples}/python.pp (100%) rename {tests => examples}/ruby.pp (100%) rename {tests => examples}/server.pp (100%) rename {tests => examples}/server/account_security.pp (100%) rename {tests => examples}/server/config.pp (100%) diff --git a/tests/backup.pp b/examples/backup.pp similarity index 100% rename from tests/backup.pp rename to examples/backup.pp diff --git a/tests/bindings.pp b/examples/bindings.pp similarity index 100% rename from tests/bindings.pp rename to examples/bindings.pp diff --git a/tests/java.pp b/examples/java.pp similarity index 100% rename from tests/java.pp rename to examples/java.pp diff --git a/tests/mysql_database.pp b/examples/mysql_database.pp similarity index 100% rename from tests/mysql_database.pp rename to examples/mysql_database.pp diff --git a/tests/mysql_db.pp b/examples/mysql_db.pp similarity index 100% rename from tests/mysql_db.pp rename to examples/mysql_db.pp diff --git a/tests/mysql_grant.pp b/examples/mysql_grant.pp similarity index 100% rename from tests/mysql_grant.pp rename to examples/mysql_grant.pp diff --git a/tests/mysql_plugin.pp b/examples/mysql_plugin.pp similarity index 100% rename from tests/mysql_plugin.pp rename to examples/mysql_plugin.pp diff --git a/tests/mysql_user.pp b/examples/mysql_user.pp similarity index 100% rename from tests/mysql_user.pp rename to examples/mysql_user.pp diff --git a/tests/perl.pp b/examples/perl.pp similarity index 100% rename from tests/perl.pp rename to examples/perl.pp diff --git a/tests/python.pp b/examples/python.pp similarity index 100% rename from tests/python.pp rename to examples/python.pp diff --git a/tests/ruby.pp b/examples/ruby.pp similarity index 100% rename from tests/ruby.pp rename to examples/ruby.pp diff --git a/tests/server.pp b/examples/server.pp similarity index 100% rename from tests/server.pp rename to examples/server.pp diff --git a/tests/server/account_security.pp b/examples/server/account_security.pp similarity index 100% rename from tests/server/account_security.pp rename to examples/server/account_security.pp diff --git a/tests/server/config.pp b/examples/server/config.pp similarity index 100% rename from tests/server/config.pp rename to examples/server/config.pp