Created
December 10, 2012 04:44
-
-
Save anl/4248420 to your computer and use it in GitHub Desktop.
Bootstrap Graphite on SmartOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
sudo -u graphite python virtualenv.py --system-site-packages /opt/graphite
failed to install anything. I just installed virtualenv viasudo pip install virtualenv
.I also activated the environment in
.bashrc
:echo 'source /opt/graphite/bin/activate' >> ~graphite/.bashrc
.