bparafina / graphite-formula

Home Page:http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphite

Formula to set up and configure graphite servers on Debian and RedHat systems

Set monitor_master role grain on the minion you want graphite installed on:

salt 'graphitemaster' grains.append roles monitor_master

Starting Service

Setup database if not already done

python /opt/graphite/webapp/graphite/manage.py syncdb

Start graphite

/opt/graphite/bin/run-graphite-devel-server.py /opt/graphite &

Generating a new password

Uses the Passlib library

pip install passlib

Then make:

python -c "from passlib.hash import pbkdf2_sha256; import getpass, pwd; print pbkdf2_sha256.encrypt(getpass.getpass())"
Password: [ENTER YOUR PASSWORD HERE]

Available states

graphite

Installs all dependencies and the graphite packages themselves, sets up a minimal system including supervisor to run carbon and django and nginx as the proxy.

graphite.supervisor

Adds a basic supervisor configuration for the graphite daemons to work on top of. The graphite state already depends on this one internally - eventually there should be a supervisor-formula.

graphite.mysqldb

Depends on the mysql-formula's mysql.client and mysql.server, makes the graphite server use mysql for the admin login.

Please note that this is a very basic (and monolithic) formula, not necessarily intended for production use.

About

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License:Other


Languages

Language:SaltStack 51.0%Language:Python 36.8%Language:Shell 11.8%Language:Ruby 0.4%