Class: Ansible::Ruby::Modules::Proxysql_replication_hostgroups
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Proxysql_replication_hostgroups
- 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
-
#comment ⇒ Object?
Text field that can be used for any purposed defined by the user.
-
#reader_hostgroup ⇒ Integer
Id of the reader hostgroup.
-
#state ⇒ :present, ...
When C(present) - adds the replication hostgroup, when C(absent) - removes the replication hostgroup.
-
#writer_hostgroup ⇒ Integer
Id of the writer hostgroup.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#comment ⇒ Object?
Returns 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_hostgroup ⇒ Integer
Returns 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.
23 |
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_replication_hostgroups.rb', line 23 attribute :state |
#writer_hostgroup ⇒ Integer
Returns Id of the writer hostgroup.
12 |
# File 'lib/ansible/ruby/modules/generated/database/proxysql/proxysql_replication_hostgroups.rb', line 12 attribute :writer_hostgroup |