added salt scripts back

This commit is contained in:
Matthew 2013-12-02 10:02:53 -06:00
parent 36cf728862
commit 810845441c
15 changed files with 339 additions and 0 deletions

View file

@ -0,0 +1,41 @@
rethinkdb-repo:
pkgrepo.managed:
- name: 'deb http://ppa.launchpad.net/rethinkdb/ppa/ubuntu precise main'
rethinkdb:
pkg.installed:
- require:
- pkgrepo.managed: rethinkdb-repo
rethinkdb-user:
user.present:
- name: rethinkdb
- shell: /bin/bash
- home: /home/rethinkdb
rethinkdb-pip:
pip:
- name: rethinkdb
- installed
- require:
- pkg: python-pip
- pkg: rethinkdb
- pkg: build-essential
/home/rethinkdb/rdb0:
file.directory:
- user: rethinkdb
- group: rethinkdb
- makedirs: True
/etc/rethinkdb/instances.d/rdb0.conf:
file.managed:
- source: salt://rethinkdb/rdb0.conf
rethinkdb-service:
service.running:
- name: rethinkdb
- enable: True
- reload: True
- watch:
- file.managed: /etc/rethinkdb/instances.d/rdb0.conf

View file

@ -0,0 +1,10 @@
runuser=rethinkdb
rungroup=rethinkdb
pid-file=/home/rethinkdb/rdb0/rethinkdb.pid
directory=/home/rethinkdb/rdb0
bind=all
driver-port=28015
cluster-port=29015
port-offset=0
http-port=20000
cores=2