Merge "Get kolla path from settings when provisioning box"

This commit is contained in:
Jenkins 2015-11-18 01:05:44 +00:00 committed by Gerrit Code Review
commit b647535e33
2 changed files with 3 additions and 2 deletions

View File

@ -136,7 +136,7 @@ Vagrant.configure(2) do |config|
# The operator controls the deployment
config.vm.define "operator" do |admin|
admin.vm.hostname = "operator.local"
admin.vm.provision :shell, path: get_default(:provision_script), args: "operator #{MULTINODE ? 'multinode' : 'aio'}"
admin.vm.provision :shell, path: get_default(:provision_script), args: "operator #{MULTINODE ? 'multinode' : 'aio'} #{get_default(:kolla_path)}"
admin.vm.synced_folder "../../etc/kolla", "/etc/kolla", type: "nfs"
admin.vm.synced_folder "../..", get_default(:kolla_path), create:"True", type: get_default(:sync_method)
admin.vm.synced_folder "storage/operator/", "/data/host", create:"True", type: get_default(:sync_method)

View File

@ -1,5 +1,6 @@
#!/bin/bash
kolla_path=$3
registry=operator.local
registry_port=4000
@ -57,7 +58,7 @@ create_registry() {
configure_kolla() {
echo "Configuring Kolla"
pip install -r /home/vagrant/kolla/requirements.txt
pip install -r $kolla_path/requirements.txt
}
echo "Kernel version $(uname -r)"