Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions plugins/modules/proxysql_mysql_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
description:
- Password of the user connecting to the mysqld or ProxySQL instance.
type: str
comment:
description:
- A helpful comment.
type: str
required: false
version_added: '1.7.0'
encrypt_password:
description:
- Encrypt a cleartext password passed in the I(password) option, using
Expand Down Expand Up @@ -129,6 +135,7 @@
salt: 'secrets_of_20_chars_'
state: present
load_to_runtime: false
comment: this is a test

# This example removes a user, saves the mysql user config to disk, and
# dynamically loads the mysql user config to runtime. It uses credentials
Expand Down Expand Up @@ -164,6 +171,7 @@
transaction_persistent: 0
use_ssl: 0
username: guest_ro
comment: this is a test
username: guest_ro
'''

Expand Down Expand Up @@ -229,7 +237,8 @@ def __init__(self, module):
"default_schema",
"transaction_persistent",
"fast_forward",
"max_connections"
"max_connections",
"comment"
]

self.config_data = dict((k, module.params[k])
Expand Down Expand Up @@ -445,7 +454,8 @@ def main():
state=dict(default='present', choices=['present',
'absent']),
save_to_disk=dict(default=True, type='bool'),
load_to_runtime=dict(default=True, type='bool')
load_to_runtime=dict(default=True, type='bool'),
comment=dict(type='str')
)

module = AnsibleModule(
Expand Down
Loading