Class: Ansible::Ruby::Modules::Consul_kv
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Consul_kv
- Defined in:
- lib/ansible/ruby/modules/generated/clustering/consul_kv.rb
Overview
Allows the retrieval, addition, modification and deletion of key/value entries in a consul cluster via the agent. The entire contents of the record, including the indices, flags and session are returned as ‘value’. If the key represents a prefix then Note that when a value is removed, the existing value if any is returned as part of the results. See www.consul.io/docs/agent/http.html#kv for more details.
Instance Method Summary collapse
-
#cas ⇒ Object?
Used when acquiring a lock with a session.
-
#flags ⇒ Object?
Opaque integer value that can be passed when setting a value.
-
#host ⇒ String?
Host of the consul agent.
-
#key ⇒ String
The key at which the value should be stored.
-
#port ⇒ Integer?
The port on which the consul agent is running.
-
#recurse ⇒ :yes, ...
If the key represents a prefix, each entry with the prefix can be retrieved by setting this to C(yes).
-
#scheme ⇒ String?
The protocol scheme on which the consul agent is running.
-
#session ⇒ String?
The session that should be used to acquire or release a lock associated with a key/value pair.
-
#state ⇒ :absent, ...
The action to take with the supplied key and value.
-
#token ⇒ Object?
The token key indentifying an ACL rule set that controls access to the key value pair.
-
#validate_certs ⇒ :yes, ...
Whether to verify the tls certificate of the consul agent.
-
#value ⇒ String, Integer
The value should be associated with the given key, required if C(state) is C(present).
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
#cas ⇒ Object?
37 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 37 attribute :cas |
#flags ⇒ Object?
40 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 40 attribute :flags |
#host ⇒ String?
43 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 43 attribute :host |
#key ⇒ String
18 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 18 attribute :key |
#port ⇒ Integer?
47 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 47 attribute :port |
#recurse ⇒ :yes, ...
26 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 26 attribute :recurse |
#scheme ⇒ String?
51 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 51 attribute :scheme |
#session ⇒ String?
30 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 30 attribute :session |
#state ⇒ :absent, ...
14 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 14 attribute :state |
#token ⇒ Object?
34 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 34 attribute :token |
#validate_certs ⇒ :yes, ...
55 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 55 attribute :validate_certs |
#value ⇒ String, Integer
22 |
# File 'lib/ansible/ruby/modules/generated/clustering/consul_kv.rb', line 22 attribute :value |