Skip to content

Commit b7a252a

Browse files
Fix sanity checks
1 parent 41514c8 commit b7a252a

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

changelogs/fragments/59-mysql_replication_verify_server_cert

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
minor_changes:
3+
- "mysql_replication - add the new options: ``primary_bind``, ``primary_heartbeat_period``, ``primary_retry_count``, ``primary_ssl_crl``, ``primary_ssl_crlpath``, ``primary_tls_version``, ``ignore_server_ids``, ``do_domain_ids``, ``ignore_domain_ids``, ``privilege_checks_user``, ``require_row_format``, ``require_table_primary_key_check``, ``source_connection_auto_failover``, ``primary_compression_algorithms``, ``primary_zstd_compression_level``, ``primary_tls_ciphersuites``, ``primary_public_key_path``, ``get_primary_public_key``, ``network_namespace`` (https://github.com/ansible-collections/community.mysql/issues/59)."

plugins/modules/mysql_replication.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,29 +234,31 @@
234234
description:
235235
- Same as mysql variable.
236236
type: bool
237+
default: False
237238
version_added: 3.6.0
238239
require_table_primary_key_check:
239240
description:
240241
- Same as mysql variable.
241-
choices: [stream, on, off]
242+
choices: ["stream", "on", "off"]
242243
type: str
243244
version_added: 3.6.0
244245
source_connection_auto_failover:
245246
description:
246247
- Same as mysql variable.
247248
type: bool
249+
default: False
248250
version_added: 3.6.0
249251
primary_compression_algorithms:
250252
description:
251-
- Same as the C(MASTER_COMPRESSION_ALGORITHM) mysql variable.
253+
- Same as the C(MASTER_COMPRESSION_ALGORITHMS) mysql variable.
252254
type: str
253-
aliases: [master_compression_algorithm]
255+
aliases: [master_compression_algorithms]
254256
version_added: 3.6.0
255257
primary_zstd_compression_level:
256258
description:
257-
- Same as the C(MASTER_ZSTD_COMPRESSION_LEVEL) mysql variable.
258-
choices: [1-22]
259+
- Same as the C(MASTER_ZSTD_COMPRESSION_LEVEL) mysql variable. Valid values are in the range [1-22]
259260
type: int
261+
choices: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22]
260262
aliases: [master_zstd_compression_level]
261263
version_added: 3.6.0
262264
primary_tls_ciphersuites:
@@ -275,6 +277,7 @@
275277
description:
276278
- Same as the C(GET_MASTER_PUBLIC_KEY) mysql variable.
277279
type: bool
280+
default: False
278281
aliases: [get_master_public_key]
279282
version_added: 3.6.0
280283
network_namespace:
@@ -596,9 +599,9 @@ def main():
596599
get_primary_public_key=dict(type='bool', default=False, aliases=['get_master_public_key']),
597600
primary_use_gtid=dict(type='str', choices=[
598601
'current_pos', 'replica_pos', 'disabled'], aliases=['master_use_gtid']),
599-
ignore_server_ids=dict(type='list'),
600-
do_domain_ids=dict(type='list'),
601-
ignore_domain_ids=dict(type='list'),
602+
ignore_server_ids=dict(type='list', elements="str"),
603+
do_domain_ids=dict(type='list', elements="str"),
604+
ignore_domain_ids=dict(type='list', elements="str"),
602605
primary_delay=dict(type='int', aliases=['master_delay']),
603606
connection_name=dict(type='str'),
604607
privilege_checks_user=dict(type='str', choices=['account']),

0 commit comments

Comments
 (0)