Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zenoamaro/ansible-rethinkdb

An Ansible role for deploying and configuring RethinkDB on unix hosts.
https://github.com/zenoamaro/ansible-rethinkdb

Last synced: 5 days ago
JSON representation

An Ansible role for deploying and configuring RethinkDB on unix hosts.

Awesome Lists containing this project

README

        

RethinkDB for Ansible
======================
A role for deploying and configuring [RethinkDB](http://rethinkdb.com) on unix hosts using [Ansible](http://www.ansibleworks.com).

It can additionally be used as a playbook for quickly provisioning hosts.

Vagrant machines are provided to produce a boxed install of RethinkDB or a VM for integration testing.

Note that, at the moment, this role only configures a single instance per host.

Supports
--------
Supported RethinkDB versions:
- RethinkDB ^1.16.2

Supported targets:
- Ubuntu 14.04 LTS "Trusty Tahr"
- Ubuntu 12.04 LTS "Precise Pangolin"
- Debian (untested)
- RedHat (untested)

Installation methods:
- Official packages from [RethinkDB](http://rethinkdb.com/docs/install/)

Usage
-----
Clone this repo into your roles directory:

$ git clone https://github.com/zenoamaro/ansible-rethinkdb.git roles/rethinkdb

And add it to your play's roles:

- hosts: ...
roles:
- rethinkdb
- ...

This roles comes preloaded with almost every available default. You can override each one in your hosts/group vars, in your inventory, or in your play. See the annotated defaults in [defaults/main.yml](defaults/main.yml) for help in configuration. All provided variables start with `rethinkdb_`.

You can also use the role as a playbook. You will be asked which hosts to provision, and you can further configure the play by using `--extra-vars`.

$ ansible-playbook -i inventory --extra-vars='{...}' main.yml

To provision a standalone box, start the `boxed` VM, which is a Ubuntu 14.04 box. After that, you can login to the admin interface on port `8080` of address `192.168.33.20` in the private network. You will also be able to access cluster management and api on ports `29015` and `28015` respectively. Please note that RethinkDB comes without any authentication.

$ vagrant up boxed

Run the tests by provisioning the appropriate VM:

$ vagrant up test-ubuntu-trusty

At the moment, the following test boxes are available:

- `test-ubuntu-precise`
- `test-ubuntu-trusty`

Still to do
-----------
- Test on RedHat
- Multi-instance

Changelog
---------
### 0.1.1
- The package list is not being updated in playbooks anymore.
- Updated inventory to use the new Vagrant private keys.

### 0.1.0
Initial version.

License
-------
The MIT License (MIT)

Copyright (c) 2015, zenoamaro

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.