gtid_replication parameter changed to master_auto_position to keep the

same variable name as the MySQL server itself
reviewable/pr18780/r1
Balazs Pocze 10 years ago
parent 0957768755
commit 14cf26f520

@ -103,7 +103,7 @@ options:
master_ssl_cipher:
description:
- same as mysql variable
gtid_replication:
master_auto_position:
descrtiption:
- does the host uses GTID based replication or not
possible values: 0,1
@ -235,7 +235,7 @@ def main():
login_host=dict(default="localhost"),
login_unix_socket=dict(default=None),
mode=dict(default="getslave", choices=["getmaster", "getslave", "changemaster", "stopslave", "startslave"]),
gtid_replication=dict(default=None, choices=['0', '1']),
master_auto_position=dict(default=None, choices=['0', '1']),
master_host=dict(default=None),
master_user=dict(default=None),
master_password=dict(default=None),
@ -272,7 +272,7 @@ def main():
master_ssl_cert = module.params["master_ssl_cert"]
master_ssl_key = module.params["master_ssl_key"]
master_ssl_cipher = module.params["master_ssl_cipher"]
gtid_replication = module.params["gtid_replication"]
master_auto_position = module.params["master_auto_position"]
if not mysqldb_found:
module.fail_json(msg="the python mysqldb module is required")
@ -369,7 +369,7 @@ def main():
if master_ssl_cipher:
chm.append("MASTER_SSL_CIPHER=%(master_ssl_cipher)s")
chm_params['master_ssl_cipher'] = master_ssl_cipher
if gtid_replication:
if master_auto_position:
chm.append("MASTER_AUTO_POSITION = 1")
changemaster(cursor, chm, chm_params)
module.exit_json(changed=True)

Loading…
Cancel
Save