RethinkDB Ansible Role that managed RethinkDB setup as single node and as a cluster.
- Ansible >= 2.4
# User and group used to run rethinkdb
runuser: "rethinkdb"
rungroup: "rethinkdb"
# Log directory
log_directory: "/var/log/rethinkdb"
# Port that used for drivers to connect to rethinkdb
driver_port: 28015
# Cluster port used for RethinkDB slaves to connect to master
cluster_port: 29015
# Data storage path
data_storage_path: "/var/lib/rethinkdb/default"
# Set's master node from instances in rethinkdb group.
# Used in cluster setup.
master_node: "{{ groups['rethinkdb_cluster'][0] }}"
Example play to install single node RethinkDB
- hosts: rethinkdb
roles:
- { role: ansible-rethinkdb }
Example play to install RethinkDB Cluster with overiding variables:
- hosts: rethinkdb_cluster
roles:
- { role: ansible-rethinkdb }
vars:
driver_port: 30000
cluster_port: 31000
data_storage_path: "/opt/rethinkdb/"
MIT / BSD
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Denis Chekirda aka Rocklviv