Chris Mague 65bf02b1b1 notes | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
misc | %!s(int64=4) %!d(string=hai) anos | |
tests | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
Vagrantfile | %!s(int64=4) %!d(string=hai) anos | |
post_install.sh | %!s(int64=3) %!d(string=hai) anos | |
setup-raft-cluster | %!s(int64=4) %!d(string=hai) anos | |
systemd_redis.example | %!s(int64=3) %!d(string=hai) anos |
This packaging runs in a Vagrant Environment
vagrant up --provision
ansible-galaxy install --roles-path `pwd`/tests/roles rvm.ruby
sudo su -
gem install fpm
mkdir -p /tmp/redisraft
cd /home/redis/redis
make PREFIX=/tmp/redisraft/usr/local install
mkdir -p /tmp/redisraft/usr/local/share/redisraft
cp /home/redis/redisraft/redisraft.so /tmp/redisraft/usr/local/share/redisraft
cp /vagrant/systemd_redis.example /tmp/redisraft/usr/local/share/redisraft
cp /vagrant/setup-raft-cluster /tmp/redisraft/usr/local/share/redisraft
cp /vagrant/misc/failover_timer /tmp/redisraft/usr/local/bin
fpm -s dir -t rpm -n redisraft -v 0.0.3 -p redisraft_VERSION_ARCH.rpm --after-install /vagrant/post_install.sh /tmp/redisraft/usr/local/bin=usr/local /tmp/redisraft/usr/local/share=usr/local
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
Modify the following file to match your infra
/usr/local/share/redisraft/setup-raft-cluster