Class: Ansible::Ruby::Modules::Consul_kv

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#casObject?

Returns used when acquiring a lock with a session. If the cas is 0, then Consul will only put the key if it does not already exist. If the cas value is non-zero, then the key is only set if the index matches the ModifyIndex of that key.

Returns:

  • (Object, nil)

    used when acquiring a lock with a session. If the cas is 0, then Consul will only put the key if it does not already exist. If the cas value is non-zero, then the key is only set if the index matches the ModifyIndex of that key.



33
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 33

attribute :cas

#flagsObject?

Returns opaque integer value that can be passed when setting a value.

Returns:

  • (Object, nil)

    opaque integer value that can be passed when setting a value.



36
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 36

attribute :flags

#hostString?

Returns host of the consul agent defaults to localhost.

Returns:

  • (String, nil)

    host of the consul agent defaults to localhost



39
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 39

attribute :host

#keyString

Returns the key at which the value should be stored.

Returns:

  • (String)

    the key at which the value should be stored.



14
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 14

attribute :key

#portInteger?

Returns the port on which the consul agent is running.

Returns:

  • (Integer, nil)

    the port on which the consul agent is running



43
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 43

attribute :port

#recurseBoolean?

Returns if the key represents a prefix, each entry with the prefix can be retrieved by setting this to true.

Returns:

  • (Boolean, nil)

    if the key represents a prefix, each entry with the prefix can be retrieved by setting this to true.



22
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 22

attribute :recurse

#schemeString?

Returns the protocol scheme on which the consul agent is running.

Returns:

  • (String, nil)

    the protocol scheme on which the consul agent is running



47
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 47

attribute :scheme

#sessionString?

Returns the session that should be used to acquire or release a lock associated with a key/value pair.

Returns:

  • (String, nil)

    the session that should be used to acquire or release a lock associated with a key/value pair



26
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 26

attribute :session

#state:present, ...

Returns the action to take with the supplied key and value. If the state is ‘present’, the key contents will be set to the value supplied, ‘changed’ will be set to true only if the value was different to the current contents. The state ‘absent’ will remove the key/value pair, again ‘changed’ will be set to true only if the key actually existed prior to the removal. An attempt can be made to obtain or free the lock associated with a key/value pair with the states ‘acquire’ or ‘release’ respectively. a valid session must be supplied to make the attempt changed will be true if the attempt is successful, false otherwise.

Returns:

  • (:present, :absent, :acquire, :release, nil)

    the action to take with the supplied key and value. If the state is ‘present’, the key contents will be set to the value supplied, ‘changed’ will be set to true only if the value was different to the current contents. The state ‘absent’ will remove the key/value pair, again ‘changed’ will be set to true only if the key actually existed prior to the removal. An attempt can be made to obtain or free the lock associated with a key/value pair with the states ‘acquire’ or ‘release’ respectively. a valid session must be supplied to make the attempt changed will be true if the attempt is successful, false otherwise.



10
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 10

attribute :state

#tokenObject?

Returns the token key indentifying an ACL rule set that controls access to the key value pair.

Returns:

  • (Object, nil)

    the token key indentifying an ACL rule set that controls access to the key value pair



30
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 30

attribute :token

#validate_certsBoolean?

Returns whether to verify the tls certificate of the consul agent.

Returns:

  • (Boolean, nil)

    whether to verify the tls certificate of the consul agent



51
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 51

attribute :validate_certs

#valueString, Integer

Returns the value should be associated with the given key, required if state is present.

Returns:

  • (String, Integer)

    the value should be associated with the given key, required if state is present



18
# File 'lib/ansible/ruby/modules/generated/extras/clustering/consul_kv.rb', line 18

attribute :value