Skip to content

Instantly share code, notes, and snippets.

@timothyklim
Forked from anl/smartos-graphite.sh
Created January 31, 2014 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothyklim/8731420 to your computer and use it in GitHub Desktop.
Save timothyklim/8731420 to your computer and use it in GitHub Desktop.
dataset=$(zfs list | grep data | awk '{print $1}')
sudo zfs set mountpoint=/data $dataset
sudo groupadd graphite
sudo useradd -c "Graphite User" -m -d /data/graphite -g graphite -s /bin/bash graphite
sudo pkgin up
sudo pkgin -y ug
sudo pkgin -y in gcc47
sudo pkgin -y in openldap-client
sudo pkgin -y in py27-amqplib # necessary?
sudo pkgin -y in py27-cairo
sudo pkgin -y in py27-memcached
sudo pkgin -y in py27-sqlite2
sudo pkgin -y in py27-twisted
wget --no-check-certificate https://raw.github.com/pypa/virtualenv/master/virtualenv.py
sudo ln -s /data/graphite /opt/graphite
sudo -u graphite python virtualenv.py --system-site-packages /opt/graphite
sudo -u graphite /opt/graphite/bin/pip install django-tagging
sudo -u graphite /opt/graphite/bin/pip install gunicorn
sudo -u graphite /opt/graphite/bin/pip install python-ldap
sudo -u graphite /opt/graphite/bin/pip install carbon
sudo -u graphite /opt/graphite/bin/pip install whisper
sudo -u graphite /opt/graphite/bin/pip install graphite-web
# lather, rinse, repeat - two servers and whisper-merge:
# https://answers.launchpad.net/graphite/+question/203668
#
# django-admin.py syncdb --noinput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment