Class: Ansible::Ruby::Modules::Consul_session
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Consul_session
- Defined in:
- lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb
Overview
allows the addition, modification and deletion of sessions in a consul cluster. These sessions can then be used in conjunction with key value pairs to implement distributed locks. In depth documentation for working with sessions can be found here www.consul.io/docs/internals/sessions.html
Instance Method Summary collapse
-
#checks ⇒ Array<String>, ...
A list of checks that will be used to verify the session health.
-
#datacenter ⇒ Object?
Name of the datacenter in which the session exists or should be created.
-
#delay ⇒ String?
The optional lock delay that can be attached to the session when it is created.
-
#host ⇒ String?
Host of the consul agent defaults to localhost.
-
#name ⇒ String?
The name that should be associated with the session.
-
#node ⇒ Object?
The name of the node that with which the session will be associated.
-
#port ⇒ Integer?
The port on which the consul agent is running.
-
#scheme ⇒ String?
The protocol scheme on which the consul agent is running.
-
#state ⇒ :present, ...
Whether the session should be present i.e.
-
#validate_certs ⇒ Boolean?
Whether to verify the tls certificate of the consul agent.
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
#checks ⇒ Array<String>, ...
29 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 29 attribute :checks |
#datacenter ⇒ Object?
26 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 26 attribute :datacenter |
#delay ⇒ String?
19 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 19 attribute :delay |
#host ⇒ String?
33 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 33 attribute :host |
#name ⇒ String?
15 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 15 attribute :name |
#node ⇒ Object?
23 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 23 attribute :node |
#port ⇒ Integer?
37 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 37 attribute :port |
#scheme ⇒ String?
41 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 41 attribute :scheme |
#state ⇒ :present, ...
11 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 11 attribute :state |
#validate_certs ⇒ Boolean?
45 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_session.rb', line 45 attribute :validate_certs |