Merge "Add rally alias to the webserver"

This commit is contained in:
Jenkins 2015-05-07 21:34:55 +00:00 committed by Gerrit Code Review
commit 284f30fc4a
3 changed files with 23 additions and 2 deletions

View File

@ -18,6 +18,7 @@
- template: src=files/openrc.j2 dest=/home/vagrant/openrc owner=vagrant group=vagrant mode=0644
- lineinfile: dest=/home/vagrant/.bashrc line='source $HOME/openrc'
- copy: src=files/setup.sh dest=/home/vagrant/scripts/setup.sh owner=vagrant group=vagrant mode=0755
- copy: src=files/rally.sh dest=/home/vagrant/scripts/rally.sh owner=vagrant group=vagrant mode=0755
- filesystem: fstype=xfs dev=/dev/sdb force=yes
- filesystem: fstype=xfs dev=/dev/sdc force=yes
- template: src=files/packstack.answers.j2 dest=/home/vagrant/packstack.answers owner=vagrant group=vagrant

View File

@ -28,3 +28,10 @@ APIs
All OpenStack API services are running on the controller node with the
default IP address ``10.100.50.10``.
Rally
-----
Install `Rally <https://github.com/openstack/rally>`_, a framework for
performance analysis and benchmarking of individual OpenStack components,
with ``/home/vagrant/scripts/rally.sh`` to ``/opt/rally``. The directory
is accessible through the webserver, by default at http://10.100.50.10/rally/.

View File

@ -2,11 +2,24 @@
# https://rally.readthedocs.org/en/latest/install.html#automated-installation
cd /home/vagrant
cd /opt
sudo yum install -y git
git clone https://git.openstack.org/openstack/rally
sudo git clone https://git.openstack.org/openstack/rally
sudo chown -R vagrant:vagrant rally
sudo ./rally/install_rally.sh
rally-manage db recreate
source /home/vagrant/openrc
rally deployment create --fromenv --name=packstack
rally deployment check
cat <<EOT | sudo tee /etc/httpd/conf.d/rally.conf
Alias /rally "/opt/rally"
<Directory "/opt/rally">
Options +Indexes
AllowOverride None
Require all granted
</Directory>
EOT
sudo sed -i "s#</VirtualHost># Include /etc/httpd/conf.d/rally.conf\n</VirtualHost>#" /etc/httpd/conf.d/15-horizon_vhost.conf
sudo systemctl restart httpd