8fe43171ce
After the repo split into kolla and kolla-ansible the Vagrant development environment was broken. With this change Vagrant will run from kolla-ansible and kolla repo is expected to be in the same directory level so the bootstrap can include it inside the VM. - Modified the bootstrap code to copy both repos into the VM. - Added one configuration token to specify kolla-ansible location inside the VM. - Updated the docs. Change-Id: I6b56822d50472f8eda6fc60f69196d3c9b8b6cf8 Closes-Bug: 1693847
96 lines
2.5 KiB
Ruby
96 lines
2.5 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# This file is an example of Vagrant configuration.
|
|
# Copy it to Vagrantfile.custom and configure it to your liking to customize
|
|
# the Vagrant deployment. The Vagrantfile.custom file is sourced by the
|
|
# Vagrantfile, it has to be valid ruby code.
|
|
|
|
# Either libvirt or virtualbox
|
|
# PROVIDER = "libvirt"
|
|
|
|
# Either centos or ubuntu
|
|
# DISTRO = "centos"
|
|
|
|
# The libvirt graphics_ip used for each guest. Only applies if PROVIDER
|
|
# is libvirt.
|
|
# GRAPHICSIP = "127.0.0.1"
|
|
|
|
# The bootstrap.sh provision_script requires CentOS 7 or Ubuntu 15.10.
|
|
# Provisioning other boxes than the default ones may therefore
|
|
# require changes to bootstrap.sh.
|
|
# PROVISION_SCRIPT = "bootstrap.sh"
|
|
|
|
# PROVIDER_DEFAULTS = {
|
|
# libvirt: {
|
|
# centos: {
|
|
# base_image: "centos/7",
|
|
# bridge_interface: "virbr0",
|
|
# vagrant_shared_folder: "/home/vagrant/sync",
|
|
# sync_method: "nfs",
|
|
# kolla_path: "/home/vagrant/kolla",
|
|
# kolla_ansible_path: "/home/vagrant/kolla-ansible"
|
|
# }
|
|
# },
|
|
# virtualbox: {
|
|
# centos: {
|
|
# base_image: "puppetlabs/centos-7.0-64-puppet",
|
|
# bridge_interface: "wlp3s0b1",
|
|
# vagrant_shared_folder: "/home/vagrant/sync",
|
|
# sync_method: "virtualbox",
|
|
# kolla_path: "/home/vagrant/kolla",
|
|
# kolla_ansible_path: "/home/vagrant/kolla-ansible"
|
|
# },
|
|
# ubuntu: {
|
|
# base_image: "ubuntu/wily64",
|
|
# bridge_interface: "wlp3s0b1",
|
|
# vagrant_shared_folder: "/home/vagrant/sync",
|
|
# sync_method: "virtualbox",
|
|
# kolla_path: "/home/vagrant/kolla",
|
|
# kolla_ansible_path: "/home/vagrant/kolla-ansible"
|
|
# }
|
|
# }
|
|
# }
|
|
|
|
# Whether the host network adapter is Wi-Fi.
|
|
# On VirtualBox, the user must first manually create a NAT-Network
|
|
# named OSNetwork. The default network CIDR must be changed.
|
|
# The Neutron external interface will be connected to this Network.
|
|
# WIFI = false
|
|
|
|
# Whether to do Multi-node or All-in-One deployment
|
|
# MULTINODE = false
|
|
|
|
# The following is only used when deploying in Multi-nodes
|
|
# NUMBER_OF_CONTROL_NODES = 3
|
|
# NUMBER_OF_COMPUTE_NODES = 1
|
|
# NUMBER_OF_STORAGE_NODES = 1
|
|
# NUMBER_OF_NETWORK_NODES = 1
|
|
|
|
# NODE_SETTINGS = {
|
|
# aio: {
|
|
# cpus: 4,
|
|
# memory: 4096
|
|
# },
|
|
# operator: {
|
|
# cpus: 1,
|
|
# memory: 1024
|
|
# },
|
|
# control: {
|
|
# cpus: 1,
|
|
# memory: 2048
|
|
# },
|
|
# compute: {
|
|
# cpus: 1,
|
|
# memory: 1024
|
|
# },
|
|
# storage: {
|
|
# cpus: 1,
|
|
# memory: 1024
|
|
# },
|
|
# network: {
|
|
# cpus: 1,
|
|
# memory: 1024
|
|
# }
|
|
# }
|