|
@@ -1,5 +1,14 @@
|
|
|
## Packaging
|
|
|
|
|
|
+This packaging runs in a [Vagrant Environment](https://www.vagrantup.com/)
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+vagrant up --provision
|
|
|
+```
|
|
|
+
|
|
|
+### Setting up the ansible internally
|
|
|
+
|
|
|
```
|
|
|
ansible-galaxy install --roles-path `pwd`/tests/roles rvm.ruby
|
|
|
```
|
|
@@ -29,15 +38,20 @@ mv *.rpm /vagrant
|
|
|
|
|
|
Starting a service:
|
|
|
|
|
|
+```
|
|
|
cp /usr/local/share/redisraft/systemd_redis.example /lib/systemd/system/redis-19901.service
|
|
|
vi the file and change the IP address
|
|
|
systemctl daemon-reload
|
|
|
systemctl enable redis-19901.service
|
|
|
systemctl start redis-19901.service
|
|
|
systemctl status redis-19901.service
|
|
|
+```
|
|
|
|
|
|
|
|
|
### Setting up a full cluster example
|
|
|
|
|
|
Modify the following file to match your infra
|
|
|
+
|
|
|
+```
|
|
|
/usr/local/share/redisraft/setup-raft-cluster
|
|
|
+```
|