diff options
| author | Diogo Monteiro <diogo.gmt@gmail.com> | 2015-11-12 08:55:57 -0500 |
|---|---|---|
| committer | Diogo Monteiro <diogo.gmt@gmail.com> | 2015-11-12 08:55:57 -0500 |
| commit | d2b388d55c3352c5d864824862f1914b2213edef (patch) | |
| tree | c45cf313178b5d7db5d94420de27f41f69004e09 /dev/vagrant | |
| parent | 55e4b54e23e96f0baae0fc49817a25152843d36c (diff) | |
| download | kolla-d2b388d55c3352c5d864824862f1914b2213edef.tar.gz kolla-d2b388d55c3352c5d864824862f1914b2213edef.zip | |
Get kolla path from settings when provisioning box
The path for the kolla source dir was being
hardcoded on the ubuntu-bootstrap provision script
instead of utilizing the path defined in the
PROVIDER_DEFAULTS settings in the Vagrantfile
Change-Id: I0eb752ecf4db580838687c290ccf36810e8a4ff3
Diffstat (limited to 'dev/vagrant')
| -rw-r--r-- | dev/vagrant/Vagrantfile | 2 | ||||
| -rw-r--r-- | dev/vagrant/ubuntu-bootstrap.sh | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/dev/vagrant/Vagrantfile b/dev/vagrant/Vagrantfile index 04393958b..fbfe05770 100644 --- a/dev/vagrant/Vagrantfile +++ b/dev/vagrant/Vagrantfile @@ -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) diff --git a/dev/vagrant/ubuntu-bootstrap.sh b/dev/vagrant/ubuntu-bootstrap.sh index aed1b766b..966a07a77 100644 --- a/dev/vagrant/ubuntu-bootstrap.sh +++ b/dev/vagrant/ubuntu-bootstrap.sh @@ -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)" |
