diff options
author | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-05-25 21:56:54 -0700 |
---|---|---|
committer | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-06-15 17:23:34 +0000 |
commit | 995d396e9310ded5827f5ee17c345b06234f68ca (patch) | |
tree | 0e50f2cbfc644198765833160282e612fcee7ab5 /vagrant/examples/box/dummy | |
parent | 1d83b0793708d7c5b0c1e13936fbf94ea5b6ee70 (diff) |
Simplify README
* configurable options have been moved to environment variables
* processes have been simplified
* Added a script to bootstrap openstack vagrant environment
* Added an example openstack dummy box Vagrantfile
Change-Id: I5dd850e9456ad205fe3a655ca9e16a9bb14f32e2
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
Diffstat (limited to 'vagrant/examples/box/dummy')
-rw-r--r-- | vagrant/examples/box/dummy/Vagrantfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vagrant/examples/box/dummy/Vagrantfile b/vagrant/examples/box/dummy/Vagrantfile new file mode 100644 index 000000000..fc53530c5 --- /dev/null +++ b/vagrant/examples/box/dummy/Vagrantfile @@ -0,0 +1,39 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby ts=2 sw=2 sts=2 et : + +# See ci-management/vagrant/lib/respin-functions.sh for examples of +# environment variable settings + +require 'vagrant-openstack-provider' + +Vagrant.configure("2") do |config| + + config.vm.provider :openstack do |os, override| + + # CPPROJECT=fdio + # STACK_PROVIDER=vexxhost + # STACK_PORTAL=secure.${STACK_PROVIDER}.com + # STACK_ID_SERVER=auth.${STACK_PROVIDER}.net + + # OPENSTACK_AUTH_URL="https://${STACK_ID_SERVER}/v2.0/" + # OPENSTACK_FLAVOR='v1-standard-4' + # STACK_REGION_NAME='ca-ymq-1' + # AVAILABILITY_ZONE='ca-ymq-2' + + os.openstack_auth_url = ENV['OPENSTACK_AUTH_URL'] + os.flavor = ENV['OPENSTACK_FLAVOR'] + os.region = ENV['STACK_REGION_NAME'] + os.availability_zone = ENV['AVAILABILITY_ZONE'] + + # https://${STACK_PORTAL}/console/#/account/credentials + os.tenant_name = ENV['OS_TENANT_NAME'] + os.username = ENV['OS_USERNAME'] + os.password = ENV['OS_PASSWORD'] + + # NETID=$(nova network-list | awk '/${CPPROJECT}/ {print $2}') + os.networks = ENV['NETID'] + + # personal default instance names: for example, ${USER}-vagrant + os.server_name = ENV['SERVER_NAME'] + end +end |