From 0017c8f9d51553d7f19d931b313931d78fea526b Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Tue, 13 Sep 2011 15:37:50 -0500 Subject: [PATCH] Add munin to stack --- apts/general | 1 + stack.sh | 30 +++++++++++++++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/apts/general b/apts/general index 57506f4..eb37e9a 100644 --- a/apts/general +++ b/apts/general @@ -10,3 +10,4 @@ lsof # useful when debugging openssh-server vim-nox locate # useful when debugging +munin diff --git a/stack.sh b/stack.sh index 72c056f..22874d9 100755 --- a/stack.sh +++ b/stack.sh @@ -34,6 +34,7 @@ KEYSTONE_DIR=$DEST/keystone NOVACLIENT_DIR=$DEST/python-novaclient API_DIR=$DEST/openstackx NOVNC_DIR=$DEST/noVNC +MUNIN_DIR=$DEST/openstack-munin # Use the first IP unless an explicit is set by ``HOST_IP`` environment variable if [ ! -n "$HOST_IP" ]; then @@ -101,12 +102,15 @@ git_clone https://github.com/cloudbuilders/python-novaclient.git $NOVACLIENT_DIR # openstackx is a collection of extensions to openstack.compute & nova # that is *deprecated*. The code is being moved into python-novaclient & nova. git_clone https://github.com/cloudbuilders/openstackx.git $API_DIR +# openstack-munin is a collection of munin plugins for monitoring the stack +git_clone https://github.com/cloudbuilders/openstack-munin.git $MUNIN_DIR # Initialization # ============== # setup our checkouts so they are installed into python path # allowing ``import nova`` or ``import glance.client`` +cd $NOVA_DIR; sudo python setup.py develop cd $NOVACLIENT_DIR; sudo python setup.py develop cd $KEYSTONE_DIR; sudo python setup.py develop cd $GLANCE_DIR; sudo python setup.py develop @@ -165,6 +169,30 @@ sudo mv /tmp/000-default /etc/apache2/sites-enabled # dashboard can run sudo chown -R www-data:www-data $DASH_DIR +# Munin +# ----- + +# allow connections from other hosts +sudo sed -i -e '/Allow from localhost/s/localhost.*$/all/' /etc/munin/apache.conf + +cat >/tmp/nova <