Class: Ansible::Ruby::Modules::Proxysql_replication_hostgroups

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

Overview

Each row in mysql_replication_hostgroups represent a pair of writer_hostgroup and reader_hostgroup. ProxySQL will monitor the value of read_only for all the servers in specified hostgroups, and based on the value of read_only will assign the server to the writer or reader hostgroups.

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

#commentObject?

Returns Text field that can be used for any purposed defined by the user.

Returns:

  • (Object, nil)

    Text field that can be used for any purposed defined by the user.



20
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_replication_hostgroups.rb', line 20

attribute :comment

#reader_hostgroupInteger

Returns Id of the reader hostgroup.

Returns:

  • (Integer)

    Id of the reader hostgroup.



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

attribute :reader_hostgroup

#state:present, ...

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

Returns:

  • (:present, :absent, nil)

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



23
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_replication_hostgroups.rb', line 23

attribute :state

#writer_hostgroupInteger

Returns Id of the writer hostgroup.

Returns:

  • (Integer)

    Id of the writer hostgroup.



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

attribute :writer_hostgroup