added salt scripts back
This commit is contained in:
parent
36cf728862
commit
810845441c
15 changed files with 339 additions and 0 deletions
41
srv/salt/rethinkdb/init.sls
Normal file
41
srv/salt/rethinkdb/init.sls
Normal 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
|
10
srv/salt/rethinkdb/rdb0.conf
Normal file
10
srv/salt/rethinkdb/rdb0.conf
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue