Remove overcloud dashboard. Expose grafana through monitoring
Change-Id: Ie8f4a72e34934e56c5212e45dcc111cc6b708a12
This commit is contained in:
@@ -12,15 +12,12 @@ end
|
||||
# Use 'execute' resource because chef does not support symlinking directories
|
||||
execute "ln -sfv /usr/local/lib/python2.7/dist-packages/enabled/* /opt/stack/horizon/openstack_dashboard/local/enabled/"
|
||||
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
|
||||
if !::File.exists?("/opt/stack/horizon/grafana/static/grafana")
|
||||
if !::File.exists?("/usr/local/lib/python2.7/dist-packages/monitoring/static/grafana")
|
||||
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"
|
||||
execute "ln -sv /opt/stack/grafana/src /usr/local/lib/python2.7/dist-packages/monitoring/static/grafana"
|
||||
end
|
||||
|
||||
# Bounce the webserver
|
||||
|
||||
Reference in New Issue
Block a user