Skip to content

Instantly share code, notes, and snippets.

@anl
Created December 10, 2012 04:44
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save anl/4248420 to your computer and use it in GitHub Desktop.
Save anl/4248420 to your computer and use it in GitHub Desktop.
Bootstrap Graphite on SmartOS
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
@neuhalje
Copy link

neuhalje commented Feb 1, 2014

sudo -u graphite python virtualenv.py --system-site-packages /opt/graphite failed to install anything. I just installed virtualenv via sudo pip install virtualenv.

I also activated the environment in .bashrc: echo 'source /opt/graphite/bin/activate' >> ~graphite/.bashrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment