From c7466dea4093ee9c087c40122e010248c2f78f46 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Mon, 11 Jan 2016 10:00:32 -0800 Subject: [PATCH] Allow openstack_citest 'grant option' privilege The old version of the puppet mysql module defined the "all" privilege as all the columns in the *_priv rows in the "db" table of the "mysql" database, which included "Grant_priv". The new version simply uses the normal MySQL API, which defines the "all" privilege as "Grant all privileges at specified access level except GRANT OPTION". In order to get back the old behavior of grant permissions on single use slaves we use the options parameter with ['GRANT']. Change-Id: I93b9375de916ca701399aee03dfaa9ab4d197319 --- modules/openstack_project/manifests/slave_db.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openstack_project/manifests/slave_db.pp b/modules/openstack_project/manifests/slave_db.pp index 404bf3edda..c7dcc268fe 100644 --- a/modules/openstack_project/manifests/slave_db.pp +++ b/modules/openstack_project/manifests/slave_db.pp @@ -62,6 +62,7 @@ class openstack_project::slave_db( if ($all_mysql_privs == true) { mysql_grant { 'openstack_citest@localhost/*.*': privileges => ['all'], + options => ['GRANT'], user => 'openstack_citest@localhost', table => '*.*', require => Mysql_user['openstack_citest@localhost'],