Class: Ansible::Ruby::Modules::Redis
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Redis
- Defined in:
- lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb
Overview
Unified utility to interact with redis instances. ‘slave’ sets a redis instance in slave or master mode. ‘flush’ flushes all the instance or a specified db. ‘config’ (new in 1.6), ensures a configuration setting on an instance.
Instance Method Summary collapse
-
#command ⇒ :slave, ...
The selected redis command.
-
#db ⇒ String?
The database to flush (used in db mode) [flush command].
-
#flush_mode ⇒ :all, ...
Type of flush (all the dbs in a redis instance or a specific one) [flush command].
-
#login_host ⇒ String?
The host running the database.
-
#login_password ⇒ Object?
The password used to authenticate with (usually not used).
-
#login_port ⇒ Integer?
The port to connect to.
-
#master_host ⇒ String?
The host of the master instance [slave command].
-
#master_port ⇒ String?
The port of the master instance [slave command].
-
#name ⇒ String?
A redis config key.
-
#slave_mode ⇒ :master, ...
The mode of the redis instance [slave command].
-
#value ⇒ String?
A redis config value.
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
#command ⇒ :slave, ...
Returns The selected redis command.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 11 attribute :command |
#db ⇒ String?
Returns The database to flush (used in db mode) [flush command].
38 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 38 attribute :db |
#flush_mode ⇒ :all, ...
Returns Type of flush (all the dbs in a redis instance or a specific one) [flush command].
42 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 42 attribute :flush_mode |
#login_host ⇒ String?
Returns The host running the database.
18 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 18 attribute :login_host |
#login_password ⇒ Object?
Returns The password used to authenticate with (usually not used).
15 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 15 attribute :login_password |
#login_port ⇒ Integer?
Returns The port to connect to.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 22 attribute :login_port |
#master_host ⇒ String?
Returns The host of the master instance [slave command].
26 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 26 attribute :master_host |
#master_port ⇒ String?
Returns The port of the master instance [slave command].
30 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 30 attribute :master_port |
#name ⇒ String?
Returns A redis config key.
46 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 46 attribute :name |
#slave_mode ⇒ :master, ...
Returns the mode of the redis instance [slave command].
34 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 34 attribute :slave_mode |
#value ⇒ String?
Returns A redis config value.
50 |
# File 'lib/ansible/ruby/modules/generated/extras/database/misc/redis.rb', line 50 attribute :value |