Files
packstack-vagrant/files/scripts/rally.sh
Christian Berendt fc415f5067 Add script to enable fake drivers for nova-compute
Change-Id: Ide5cac229d5862a770ec9b4fb71a82cbe114365a
2015-05-07 23:45:54 +02:00

26 lines
710 B
Bash
Executable File

#!/bin/sh
# https://rally.readthedocs.org/en/latest/install.html#automated-installation
cd /opt
sudo yum install -y git
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