Skip to content

Commit 482a0d8

Browse files
authored
Release 3.3.0 commit (#389)
1 parent 2e9d50f commit 482a0d8

9 files changed

+81
-28
lines changed

CHANGELOG.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ Community MySQL Collection Release Notes
66

77
This changelog describes changes after version 2.0.0.
88

9+
v3.3.0
10+
======
11+
12+
Release Summary
13+
---------------
14+
15+
This is the minor release of the ``community.mysql`` collection.
16+
This changelog contains all changes to the modules in this collection
17+
that have been added after the release of ``community.mysql`` 3.2.1.
18+
19+
Minor Changes
20+
-------------
21+
22+
- mysql_role - add the argument ``members_must_exist`` (boolean, default true). The assertion that the users supplied in the ``members`` argument exist is only executed when the new argument ``members_must_exist`` is ``true``, to allow opt-out (https://github.com/ansible-collections/community.mysql/pull/369).
23+
- mysql_user - Add the option ``on_new_username`` to argument ``update_password`` to reuse the password (plugin and authentication_string) when creating a new user if some user with the same name already exists. If the existing user with the same name have varying passwords, the password from the arguments is used like with ``update_password: always`` (https://github.com/ansible-collections/community.mysql/pull/365).
24+
- mysql_user - Add the result field ``password_changed`` (boolean). It is true, when the user got a new password. When the user was created with ``update_password: on_new_username`` and an existing password was reused, ``password_changed`` is false (https://github.com/ansible-collections/community.mysql/pull/365).
25+
26+
Bugfixes
27+
--------
28+
29+
- mysql_query - fix false change reports when ``IF EXISTS/IF NOT EXISTS`` clause is used (https://github.com/ansible-collections/community.mysql/issues/268).
30+
- mysql_role - don't add members to a role when creating the role and ``detach_members: true`` is set (https://github.com/ansible-collections/community.mysql/pull/367).
31+
- mysql_role - in some cases (when "SHOW GRANTS" did not use backticks for quotes), no unwanted members were detached from the role (and redundant "GRANT" statements were executed for wanted members). This is fixed by querying the existing role members from the mysql.role_edges (MySQL) or mysql.roles_mapping (MariaDB) tables instead of parsing the "SHOW GRANTS" output (https://github.com/ansible-collections/community.mysql/pull/368).
32+
- mysql_user - fix logic when ``update_password`` is set to ``on_create`` for users using ``plugin*`` arguments (https://github.com/ansible-collections/community.mysql/issues/334). The ``on_create`` sets ``password`` to None for old mysql_native_authentication but not for authentiation methods which uses the ``plugin*`` arguments. This PR changes this so ``on_create`` also exchange ``plugin``, ``plugin_hash_string``, ``plugin_auth_string`` to None in the list of arguments to change
33+
934
v3.2.1
1035
======
1136

@@ -128,7 +153,7 @@ that have been added after the release of ``community.mysql`` 2.3.2.
128153
Breaking Changes / Porting Guide
129154
--------------------------------
130155

131-
- mysql_replication - remove ``Is_Slave`` and ``Is_Master`` return values (were replaced with ``Is_Primary`` and ``Is_Replica`` (https://github.com/ansible-collections/community.mysql/issues/145).
156+
- mysql_replication - remove ``Is_Slave`` and ``Is_Master`` return values (were replaced with ``Is_Primary`` and ``Is_Replica`` (https://github.com/ansible-collections /community.mysql/issues/145).
132157
- mysql_replication - remove the mode options values containing ``master``/``slave`` and the master_use_gtid option ``slave_pos`` (were replaced with corresponding ``primary``/``replica`` values) (https://github.com/ansible-collections/community.mysql/issues/145).
133158
- mysql_user - remove support for the `REQUIRESSL` special privilege as it has ben superseded by the `tls_requires` option (https://github.com/ansible-collections/community.mysql/discussions/121).
134159
- mysql_user - validate privileges using database engine directly (https://github.com/ansible-collections/community.mysql/issues/234 https://github.com/ansible-collections/community.mysql/pull/243). Do not validate privileges in this module anymore.

changelogs/changelog.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,57 @@ releases:
140140
- 3.2.1.yml
141141
- psf-license.yml
142142
release_date: '2022-05-17'
143+
3.3.0:
144+
changes:
145+
bugfixes:
146+
- mysql_query - fix false change reports when ``IF EXISTS/IF NOT EXISTS`` clause
147+
is used (https://github.com/ansible-collections/community.mysql/issues/268).
148+
- 'mysql_role - don''t add members to a role when creating the role and ``detach_members:
149+
true`` is set (https://github.com/ansible-collections/community.mysql/pull/367).'
150+
- 'mysql_role - in some cases (when "SHOW GRANTS" did not use backticks for
151+
quotes), no unwanted members were detached from the role (and redundant "GRANT"
152+
statements were executed for wanted members). This is fixed by querying the
153+
existing role members from the mysql.role_edges (MySQL) or mysql.roles_mapping
154+
(MariaDB) tables instead of parsing the "SHOW GRANTS" output (https://github.com/ansible-collections/community.mysql/pull/368).
155+
156+
'
157+
- mysql_user - fix logic when ``update_password`` is set to ``on_create`` for
158+
users using ``plugin*`` arguments (https://github.com/ansible-collections/community.mysql/issues/334).
159+
The ``on_create`` sets ``password`` to None for old mysql_native_authentication
160+
but not for authentiation methods which uses the ``plugin*`` arguments. This
161+
PR changes this so ``on_create`` also exchange ``plugin``, ``plugin_hash_string``,
162+
``plugin_auth_string`` to None in the list of arguments to change
163+
minor_changes:
164+
- 'mysql_role - add the argument ``members_must_exist`` (boolean, default true).
165+
The assertion that the users supplied in the ``members`` argument exist is
166+
only executed when the new argument ``members_must_exist`` is ``true``, to
167+
allow opt-out (https://github.com/ansible-collections/community.mysql/pull/369).
168+
169+
'
170+
- 'mysql_user - Add the option ``on_new_username`` to argument ``update_password``
171+
to reuse the password (plugin and authentication_string) when creating a new
172+
user if some user with the same name already exists. If the existing user
173+
with the same name have varying passwords, the password from the arguments
174+
is used like with ``update_password: always`` (https://github.com/ansible-collections/community.mysql/pull/365).
175+
176+
'
177+
- 'mysql_user - Add the result field ``password_changed`` (boolean). It is true,
178+
when the user got a new password. When the user was created with ``update_password:
179+
on_new_username`` and an existing password was reused, ``password_changed``
180+
is false (https://github.com/ansible-collections/community.mysql/pull/365).
181+
182+
'
183+
release_summary: 'This is the minor release of the ``community.mysql`` collection.
184+
185+
This changelog contains all changes to the modules in this collection
186+
187+
that have been added after the release of ``community.mysql`` 3.2.1.'
188+
fragments:
189+
- 3.3.0.yml
190+
- 322-mysql_query_fix_false_change_report.yml
191+
- 334-mysql_user_fix_logic_on_oncreate.yml
192+
- 365-mysql_user-add-on_new_username-and-password_changed.yml
193+
- 367-mysql_role-fix-deatch-members.yml
194+
- 368-mysql_role-fix-member-detection.yml
195+
- 369_mysql_role-add-members_must_exist.yml
196+
release_date: '2022-06-02'

changelogs/fragments/322-mysql_query_fix_false_change_report.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

changelogs/fragments/334-mysql_user_fix_logic_on_oncreate.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

changelogs/fragments/365-mysql_user-add-on_new_username-and-password_changed.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

changelogs/fragments/367-mysql_role-fix-deatch-members.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

changelogs/fragments/368-mysql_role-fix-member-detection.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

changelogs/fragments/369_mysql_role-add-members_must_exist.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace: community
22
name: mysql
3-
version: 3.2.1
3+
version: 3.3.0
44
readme: README.md
55
authors:
66
- Ansible community

0 commit comments

Comments
 (0)