From b6ed758a7805336a8c556ec19a269d7ca1edbbc0 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Fri, 8 Feb 2019 12:31:52 +0100 Subject: [PATCH] Use puppet 4 compatible mysql functions These was introduced in 6.0.0 and is required to support later version of puppetlabs-mysql. Change-Id: I4978e2706e983735f37f5441efbc6b1c8d8fd053 --- manifests/db/mysql.pp | 2 +- metadata.json | 4 ++++ releasenotes/notes/puppet4-mysql-func-b2df8cd05bbb3c22.yaml | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/puppet4-mysql-func-b2df8cd05bbb3c22.yaml diff --git a/manifests/db/mysql.pp b/manifests/db/mysql.pp index 078d5be..84245c2 100644 --- a/manifests/db/mysql.pp +++ b/manifests/db/mysql.pp @@ -49,7 +49,7 @@ class zaqar::db::mysql( ::openstacklib::db::mysql { 'zaqar': user => $user, - password_hash => mysql_password($password), + password_hash => mysql::password($password), dbname => $dbname, host => $host, charset => $charset, diff --git a/metadata.json b/metadata.json index 4e653d2..7afa84d 100644 --- a/metadata.json +++ b/metadata.json @@ -9,6 +9,10 @@ "name": "puppetlabs/stdlib", "version_requirement": ">=5.0.0 <6.0.0" }, + { + "name": "puppetlabs/mysql", + "version_requirement": ">=6.0.0 <9.0.0" + }, { "name": "openstack/keystone", "version_requirement": ">=14.2.0 <15.0.0" diff --git a/releasenotes/notes/puppet4-mysql-func-b2df8cd05bbb3c22.yaml b/releasenotes/notes/puppet4-mysql-func-b2df8cd05bbb3c22.yaml new file mode 100644 index 0000000..9db533e --- /dev/null +++ b/releasenotes/notes/puppet4-mysql-func-b2df8cd05bbb3c22.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - | + This module now requires a puppetlabs-mysql version >= 6.0.0