Add Rally to Vagrant VM
Change-Id: I047752617c7808523c84c1920cc0a945ee1cd861
This commit is contained in:
parent
70b4bc8050
commit
eb04d93ca3
25
contrib/vagrant/Vagrantfile
vendored
25
contrib/vagrant/Vagrantfile
vendored
@ -12,6 +12,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
config.vm.synced_folder "../../../python-designateclient", "/opt/stack/python-designateclient"
|
||||
end
|
||||
|
||||
if File.directory?("../../../../stackforge/rally")
|
||||
config.vm.synced_folder "../../../../stackforge/rally", "/opt/stack/rally"
|
||||
end
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.customize ["modifyvm", :id, "--memory", "2048"]
|
||||
if not RUBY_PLATFORM.downcase.include?("mswin")
|
||||
@ -23,6 +27,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
$script = <<SCRIPT
|
||||
set -e
|
||||
|
||||
# Fixup permissions on /opt/stack/
|
||||
sudo chown vagrant:vagrant /opt/stack/
|
||||
|
||||
# Copy over git config
|
||||
cat << EOF > /home/vagrant/.gitconfig
|
||||
#{GITCONFIG}
|
||||
@ -49,6 +56,24 @@ for f in lib/* extras.d/* exercises/*; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Clone Rally
|
||||
if [ ! -d "/opt/stack/rally" ]; then
|
||||
git clone https://git.openstack.org/stackforge/rally.git /opt/stack/rally
|
||||
fi
|
||||
|
||||
# Install Rally DevStack extension
|
||||
cd /opt/stack/rally/contrib/devstack
|
||||
|
||||
for f in lib/* extras.d/*; do
|
||||
if [ ! -f "/home/vagrant/devstack/$f" ]; then
|
||||
ln -fs /opt/stack/rally/contrib/devstack/$f -t /home/vagrant/devstack/$(dirname $f)
|
||||
fi
|
||||
done
|
||||
|
||||
# Link in the Rally Plugins
|
||||
mkdir /home/vagrant/.rally
|
||||
ln -s /opt/stack/designate/rally-scenarios/plugins /home/vagrant/.rally/plugins
|
||||
|
||||
SCRIPT
|
||||
|
||||
config.vm.define "ubuntu" do |ubuntu|
|
||||
|
@ -27,5 +27,8 @@ ENABLED_SERVICES+=,designate,designate-api,designate-central,designate-mdns
|
||||
# Optional TLS Proxy
|
||||
#ENABLED_SERVICES+=,tls-proxy
|
||||
|
||||
# Optional Rally
|
||||
#ENABLED_SERVICES+=,rally
|
||||
|
||||
# Designate Options
|
||||
#DESIGNATE_BACKEND_DRIVER=powerdns
|
||||
|
Loading…
Reference in New Issue
Block a user