Skip to content

Instantly share code, notes, and snippets.

@logic855
Forked from anl/smartos-graphite.sh
Created August 29, 2016 14:44
Show Gist options
  • Save logic855/e81bcb44d2201d87786398266e9241be to your computer and use it in GitHub Desktop.
Save logic855/e81bcb44d2201d87786398266e9241be 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment