Class: Ansible::Ruby::Modules::Proxysql_mysql_users

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb

Overview

The M(proxysql_mysql_users) module adds or removes mysql users using the proxysql admin interface.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#activeObject?

Returns A user with I(active) set to C(False) will be tracked in the database, but will be never loaded in the in-memory data structures. If omitted the proxysql database default for I(active) is C(True).

Returns:

  • (Object, nil)

    A user with I(active) set to C(False) will be tracked in the database, but will be never loaded in the in-memory data structures. If omitted the proxysql database default for I(active) is C(True).



19
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 19

attribute :active

#backendBoolean?

Returns If I(backend) is set to C(True), this (username, password) pair is used for authenticating to the ProxySQL instance.

Returns:

  • (Boolean, nil)

    If I(backend) is set to C(True), this (username, password) pair is used for authenticating to the ProxySQL instance.



37
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 37

attribute :backend

#default_hostgroupObject?

Returns If there is no matching rule for the queries sent by this user, the traffic it generates is sent to the specified hostgroup. If omitted the proxysql database default for I(use_ssl) is 0.

Returns:

  • (Object, nil)

    If there is no matching rule for the queries sent by this user, the traffic it generates is sent to the specified hostgroup. If omitted the proxysql database default for I(use_ssl) is 0.



25
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 25

attribute :default_hostgroup

#default_schemaObject?

Returns The schema to which the connection should change to by default.

Returns:

  • (Object, nil)

    The schema to which the connection should change to by default.



28
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 28

attribute :default_schema

#fast_forwardObject?

Returns If I(fast_forward) is set to C(True), I(fast_forward) will bypass the query processing layer (rewriting, caching) and pass through the query directly as is to the backend server. If omitted the proxysql database default for I(fast_forward) is C(False).

Returns:

  • (Object, nil)

    If I(fast_forward) is set to C(True), I(fast_forward) will bypass the query processing layer (rewriting, caching) and pass through the query directly as is to the backend server. If omitted the proxysql database default for I(fast_forward) is C(False).



34
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 34

attribute :fast_forward

#frontendBoolean?

Returns If I(frontend) is set to C(True), this (username, password) pair is used for authenticating to the mysqld servers against any hostgroup.

Returns:

  • (Boolean, nil)

    If I(frontend) is set to C(True), this (username, password) pair is used for authenticating to the mysqld servers against any hostgroup.



41
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 41

attribute :frontend

#max_connectionsObject?

Returns The maximum number of connections ProxySQL will open to the backend for this user. If omitted the proxysql database default for I(max_connections) is 10000.

Returns:

  • (Object, nil)

    The maximum number of connections ProxySQL will open to the backend for this user. If omitted the proxysql database default for I(max_connections) is 10000.



45
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 45

attribute :max_connections

#passwordObject?

Returns Password of the user connecting to the mysqld or ProxySQL instance.

Returns:

  • (Object, nil)

    Password of the user connecting to the mysqld or ProxySQL instance.



16
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 16

attribute :password

#state:present, ...

Returns When C(present) - adds the user, when C(absent) - removes the user.

Returns:

  • (:present, :absent, nil)

    When C(present) - adds the user, when C(absent) - removes the user.



48
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 48

attribute :state

#transaction_persistentObject?

Returns If this is set for the user with which the MySQL client is connecting to ProxySQL (thus a “frontend” user), transactions started within a hostgroup will remain within that hostgroup regardless of any other rules. If omitted the proxysql database default for I(transaction_persistent) is C(False).

Returns:

  • (Object, nil)

    If this is set for the user with which the MySQL client is connecting to ProxySQL (thus a “frontend” user), transactions started within a hostgroup will remain within that hostgroup regardless of any other rules. If omitted the proxysql database default for I(transaction_persistent) is C(False).



31
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 31

attribute :transaction_persistent

#use_sslObject?

Returns If I(use_ssl) is set to C(True), connections by this user will be made using SSL connections. If omitted the proxysql database default for I(use_ssl) is C(False).

Returns:

  • (Object, nil)

    If I(use_ssl) is set to C(True), connections by this user will be made using SSL connections. If omitted the proxysql database default for I(use_ssl) is C(False).



22
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 22

attribute :use_ssl

#usernameString

Returns Name of the user connecting to the mysqld or ProxySQL instance.

Returns:

  • (String)

    Name of the user connecting to the mysqld or ProxySQL instance.



12
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_mysql_users.rb', line 12

attribute :username