Comments (2)
This actually ended up being a lot easier than I thought it would. Putting notes here for posterity:
Read: http://chrislaskey.com/blog/342/running-multiple-redis-instances-on-the-same-server/
In the post_tasks of the playbook where you install the original instance, re-use the original redis.conf.j2
and set any variables that you want to change.
Important ones are:
- port
- logfile
- config file
- pidfile
post_tasks:
- name: Redis Plutonium data directory
file: path={{ redis_plutonium_dbdir }} state=directory mode=0751 owner=redis group=redis
- name: Ensure Redis Plutonium is configured.
template:
src: templates/redis.conf.j2
dest: "{{ redis_plutonium_conf_path }}"
mode: 644
vars:
redis_daemon: "{{ redis_plutonium_daemon }}"
redis_port: "{{ redis_plutonium_port }}"
redis_logfile: "{{ redis_plutonium_logfile }}"
redis_dbdir: "{{ redis_plutonium_dbdir }}"
redis_save: "{{ redis_plutonium_save }}"
redis_appendonly: "{{ redis_plutonium_appendonly }}"
redis_appendfsync: "{{ redis_plutonium_appendfsync }}"
redis_instance: "-p"
notify: restart redis
- name: Ensure Redis Plutonium has startup script
template:
src: templates/redis-server-p.sh.j2
dest: /etc/init.d/redis-server-p
mode: 751
- name: Ensure Redis Plutonium is running and enabled on boot.
service: "name={{ redis_plutonium_daemon }} state=started enabled=yes"
- name: adjust perms of newrelic file
from ansible-role-redis.
That link is dead, here's an updated one: https://chrislaskey.com/blog/342
❤️
from ansible-role-redis.
Related Issues (20)
- Expose all configuration variable as redis_* ansible vars HOT 2
- New Options To Fix Warning Messages HOT 4
- i am ruuning my ansible code i got this error HOT 4
- 'check_mode is not a legal parameter' HOT 1
- Fix deprecation warnings for 'include' in Ansible 2.4+
- Does not enable as a systemd service HOT 2
- `redis-server` installation fails when IPv6 is disabled HOT 2
- redis_requirepass not working HOT 3
- Q/B: Does package module "enablerepo"? HOT 2
- doesnt work on vanilla machines where apt cache is not updated. HOT 2
- Support cluster mode and sharding HOT 2
- Error with redis pid file HOT 11
- Add Replication HOT 3
- redis 6.2.1 Failed with result 'protocol' HOT 7
- Error when installing from official Redis repository on Ubuntu HOT 4
- Redis Cluster HOT 3
- Explicitly disable RDB persistence HOT 7
- Missing 'redis_conf_mode: 0640' default in Archlinux vars HOT 4
- Provide packages for Redis from redis.io
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-redis.