Class: Ansible::Ruby::Modules::Consul
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Consul
- Defined in:
- lib/ansible/ruby/modules/generated/extras/clustering/consul.rb
Instance Method Summary collapse
-
#check_id ⇒ String?
An ID for the service check, defaults to the check name, ignored if part of a service definition.
-
#check_name ⇒ String?
A name for the service check, defaults to the check id.
-
#host ⇒ String?
Host of the consul agent defaults to localhost.
-
#http ⇒ String?
Checks can be registered with an http endpoint.
-
#interval ⇒ String?
The interval at which the service check will be run.
-
#notes ⇒ Object?
Notes to attach to check when registering it.
-
#port ⇒ Integer?
The port on which the consul agent is running.
-
#scheme ⇒ String?
The protocol scheme on which the consul agent is running.
-
#script ⇒ String?
The script/command that will be run periodically to check the health of the service.
-
#service_address ⇒ String?
The address to advertise that the service will be listening on.
-
#service_id ⇒ String?
The ID for the service, must be unique per node, defaults to the service name if the service name is supplied.
-
#service_name ⇒ String?
Unique name for the service on a node, must be unique per node, required if registering a service.
-
#service_port ⇒ Integer?
The port on which the service is listening required for registration of a service, i.e.
-
#state ⇒ :present, :absent
Register or deregister the consul service, defaults to present.
-
#tags ⇒ Array<String>, ...
A list of tags that will be attached to the service registration.
-
#timeout ⇒ Object?
A custom HTTP check timeout.
-
#token ⇒ Object?
The token key indentifying an ACL rule set.
-
#ttl ⇒ Object?
Checks can be registered with a ttl instead of a script and interval this means that the service will check in with the agent before the ttl expires.
-
#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, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#check_id ⇒ String?
Returns an ID for the service check, defaults to the check name, ignored if part of a service definition.
61 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 61 attribute :check_id |
#check_name ⇒ String?
Returns a name for the service check, defaults to the check id. required if standalone, ignored if part of service definition.
65 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 65 attribute :check_name |
#host ⇒ String?
Returns host of the consul agent defaults to localhost.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 22 attribute :host |
#http ⇒ String?
Returns checks can be registered with an http endpoint. This means that consul will check that the http endpoint returns a successful http status. Interval must also be provided with this option.
72 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 72 attribute :http |
#interval ⇒ String?
Returns the interval at which the service check will be run. This is a number with a s or m suffix to signify the units of seconds or minutes e.g 15s or 1m. If no suffix is supplied, m will be used by default e.g. 1 will be 1m. Required if the script param is specified.
57 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 57 attribute :interval |
#notes ⇒ Object?
Returns Notes to attach to check when registering it.
38 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 38 attribute :notes |
#port ⇒ Integer?
Returns the port on which the consul agent is running.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 26 attribute :port |
#scheme ⇒ String?
Returns the protocol scheme on which the consul agent is running.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 30 attribute :scheme |
#script ⇒ String?
Returns the script/command that will be run periodically to check the health of the service. Scripts require an interval and vise versa.
53 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 53 attribute :script |
#service_address ⇒ String?
Returns the address to advertise that the service will be listening on. This value will be passed as the I(Address) parameter to Consul’s U(/v1/agent/service/register) API method, so refer to the Consul API documentation for further details.
45 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 45 attribute :service_address |
#service_id ⇒ String?
Returns the ID for the service, must be unique per node, defaults to the service name if the service name is supplied.
18 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 18 attribute :service_id |
#service_name ⇒ String?
Returns Unique name for the service on a node, must be unique per node, required if registering a service. May be ommitted if registering a node level check.
14 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 14 attribute :service_name |
#service_port ⇒ Integer?
Returns the port on which the service is listening required for registration of a service, i.e. if service_name or service_id is set.
41 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 41 attribute :service_port |
#state ⇒ :present, :absent
Returns register or deregister the consul service, defaults to present.
10 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 10 attribute :state |
#tags ⇒ Array<String>, ...
Returns a list of tags that will be attached to the service registration.
49 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 49 attribute :tags |
#timeout ⇒ Object?
Returns A custom HTTP check timeout. The consul default is 10 seconds. Similar to the interval this is a number with a s or m suffix to signify the units of seconds or minutes, e.g. 15s or 1m.
76 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 76 attribute :timeout |
#token ⇒ Object?
Returns the token key indentifying an ACL rule set. May be required to register services.
79 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 79 attribute :token |
#ttl ⇒ Object?
Returns checks can be registered with a ttl instead of a script and interval this means that the service will check in with the agent before the ttl expires. If it doesn’t the check will be considered failed. Required if registering a check and the script an interval are missing Similar to the interval this is a number with a s or m suffix to signify the units of seconds or minutes e.g 15s or 1m. If no suffix is supplied, m will be used by default e.g. 1 will be 1m.
69 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 69 attribute :ttl |
#validate_certs ⇒ Boolean?
Returns whether to verify the tls certificate of the consul agent.
34 |
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul.rb', line 34 attribute :validate_certs |