blob: da71cbb00a4173fb03edf7525a83adac0d825dea [file] [log] [blame]
Ales Komarekc151bcf2017-02-20 20:46:54 +01001=============
2Redis formula
3=============
4
5key value storage
6
7
8Sample pillars
9==============
10
11Redis localhost server
12
13
14.. code-block:: yaml
15
16 redis:
17 server:
18 enabled: true
19 bind:
Martin Polreich95710dd2018-07-18 11:42:38 +020020 address: 127.0.0.1
Ales Komarekc151bcf2017-02-20 20:46:54 +010021 port: 6379
22 protocol: tcp
23
24Redis world open
25
26.. code-block:: yaml
27
28 redis:
29 server:
30 enabled: true
31 bind:
Martin Polreich95710dd2018-07-18 11:42:38 +020032 address: 0.0.0.0
Ales Komarekc151bcf2017-02-20 20:46:54 +010033 port: 6379
34 protocol: tcp
35
36Redis modes
37
38.. code-block:: yaml
39
40 redis:
41 server:
42 enabled: true
43 appendfsync: no | everysec | always
44
45Redis cluster master
46
47.. code-block:: yaml
48
49 redis:
50 cluster:
51 enabled: True
52 master:
53 host: 192.168.1.100
54 port: 6379
55 mode: sentinel
56 quorum: 2
57 role: master
58 supervisor:
59 server:
60 service:
61 redis_sentinel:
62 name: sentinel
63 type: redis
64
65Redis cluster slave
66
67.. code-block:: yaml
68
69 redis:
70 cluster:
71 enabled: True
72 master:
73 host: 192.168.1.100
74 port: 6379
75 mode: sentinel
76 quorum: 2
77 role: slave
78 supervisor:
79 server:
80 service:
81 redis_sentinel:
82 name: sentinel
83 type: redis
84
85
86Command usage
87=============
88
89Removes data from your connection's CURRENT database.
90
91 > redis-cli FLUSHDB
92
93Removes data from ALL databases.
94
95 > redis-cli FLUSHALL
96
97
98More information
99================
100
101* http://redis.io/topics/admin
102* http://redis.io/topics/quickstart
103* http://redis.io/topics/persistence
104
Filip Pytloun764c13d2017-02-02 13:04:49 +0100105
106Documentation and Bugs
107======================
108
109To learn how to install and update salt-formulas, consult the documentation
110available online at:
111
112 http://salt-formulas.readthedocs.io/
113
114In the unfortunate event that bugs are discovered, they should be reported to
115the appropriate issue tracker. Use Github issue tracker for specific salt
116formula:
117
118 https://github.com/salt-formulas/salt-formula-redis/issues
119
120For feature requests, bug reports or blueprints affecting entire ecosystem,
121use Launchpad salt-formulas project:
122
123 https://launchpad.net/salt-formulas
124
125You can also join salt-formulas-users team and subscribe to mailing list:
126
127 https://launchpad.net/~salt-formulas-users
128
129Developers wishing to work on the salt-formulas projects should always base
130their work on master branch and submit pull request against specific formula.
131
132 https://github.com/salt-formulas/salt-formula-redis
133
134Any questions or feedback is always welcome so feel free to join our IRC
135channel:
136
137 #salt-formulas @ irc.freenode.net