Skip to content

Instantly share code, notes, and snippets.

@d34dh0r53
Last active August 29, 2015 14:01
Show Gist options
  • Save d34dh0r53/27dfb4389e26603e1fb7 to your computer and use it in GitHub Desktop.
Save d34dh0r53/27dfb4389e26603e1fb7 to your computer and use it in GitHub Desktop.
horizon
lxc-create --name horizon --config /etc/lxc/os_service.conf --template defiant -- -I eth1=192.168.18.210=255.255.255.0
lxc-start -d -n horizon
lxc-attach -n horizon
apt-get curl install -y apache2 memcached libapache2-mod-wsgi git python-pip gcc python-dev libffi-dev libxml2-dev libxslt-dev
pip install python-memcached
git clone https://github.com/openstack/horizon.git -b stable/icehouse
cd horizon
pip install -r requirements.txt
python setup.py install
chown -R www-data:www-data /usr/local/lib/python2.7/dist-packages/openstack*
ln -s /usr/local/lib/python2.7/dist-packages/openstack_dashboard/static /usr/local/lib/python2.7/dist-packages/static
cat > /etc/apache2/conf.d/openstack-dashboard.conf <<EOF
WSGIScriptAlias / /usr/local/lib/python2.7/dist-packages/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=www-data group=www-data processes=3 threads=10
Alias /static /usr/local/lib/python2.7/dist-packages/openstack_dashboard/static/
<Directory /usr/local/lib/python2.7/dist-packages/openstack_dashboard/wsgi>
Order allow,deny
Allow from all
</Directory>
EOF
cd /usr/local/lib/python2.7/dist-packages/openstack_dashboard/local
cp local_settings.py.example local_settings.py
curl -O https://gist.githubusercontent.com/d34dh0r53/91e0cc5339ee36639cce/raw/6233595b640e2d6b604b4bb0c54465806b533d73/poc1.patch
patch -p0 < poc1.patch
service apache2 restart
service memcached restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment