This Ansible playbook will install graphite via pip in its default location '/opt/graphite'
To run this playbook.
- clone the repo
- modify the
hosts
file to reflect the server you want to install Graphite on - ignore ssh's known hosts file
export ANSIBLE_HOST_KEY_CHECKING=False
- run
ansible-playbook -i hosts playbook.yml
- You can modify the user Ansible uses by adding extra-vars
ansible-playbook -i hosts playbook.yml --extra-vars ssh_user=ec2-user
- In ~4 minutes you should have a running Graphite server!
Change graphite_secret_key
under roles/graphite/defaults/main.yml
to something unique for your graphite instance!
Change graphite_django_admin_media
under roles/graphite/defaults/main.yml
to the path of your django admin media
# XXX In order for the django admin site media to work you
# must change @DJANGO_ROOT@ to be the path to your django
# installation, which is probably something like:
Alias /media/ "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/"
# or
#Alias /media/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"
It has been setup according to this page and might not do what you expect to with your data
Simply clone this repo and make sure you have Vagrant + Virtual Box installed and...
- vagrant up
- visit http://192.168.111.222/
- :-)
Vagrant is using Ubuntu 14.04 Trusty Tahr for it's OS.
I've tested this playbook with Digital Ocean VM's with a few different flavor of OS's.
- CentOS 6.5
- Ubuntu 14.04 Trusty Tahr
- Amazon Linux
- Add Django superuser creation
python manage.py createsuperuser
.
- If you are seeing "DatabaseError: database is locked" in your graphite logs, restarting apache may fix the issue for you.
- SELinux needs to be disabled