Add grafana to devstack.

This commit is contained in:
Rob Raymond 2014-07-07 10:20:35 -06:00
parent d9d2c4afd7
commit 705bfa97c1
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,13 @@ execute "ln -sfv /usr/local/lib/python2.7/dist-packages/enabled/* /opt/stack/hor
execute "ln -sv /usr/local/lib/python2.7/dist-packages/monitoring /opt/stack/horizon/monitoring"
execute "ln -sv /usr/local/lib/python2.7/dist-packages/cosmos/overcloud /opt/stack/horizon/openstack_dashboard/dashboards/overcloud"
# install grafana and integrate with horizon
execute "git clone https://github.com/hpcloud-mon/grafana.git /opt/stack/grafana"
execute "cp /opt/stack/grafana/src/config.sample.js /opt/stack/grafana/src/config.js"
execute "mkdir -p /opt/stack/horizon/grafana/static"
execute "touch /opt/stack/horizon/grafana/__init__.py"
execute "ln -sv /opt/stack/grafana/src /opt/stack/horizon/grafana/static/grafana"
# Bounce the webserver
service "apache2" do
action :restart