Add README.md with instructions on how to use the environment. Add final changes to the Vagrantfile and Ansible provisioning script. Add Jinja2 template for final setup script. Signed-off-by: Scott S. Lowe <scott.lowe@scottlowe.org> |
||
|---|---|---|
| .. | ||
| ansible.cfg | ||
| machines.yml | ||
| provision.yml | ||
| README.md | ||
| setup.sh.j2 | ||
| Vagrantfile | ||
Open Virtual Network (OVN)
These files were created to allow users to use Vagrant (http://www.vagrantup.com) to quickly and easily spin up an environment to test Open Virtual Network (OVN), a part of the Open vSwitch project.
Contents
-
ansible.cfg: This is an Ansible configuration file that instructs Ansible to use the "vagrant" remote user, and to use Vagrant's built-in Ansible inventory.
-
machines.yml: This YAML file contains a list of VM definitions and associated configuration data. It is referenced by
Vagrantfilewhen Vagrant instantiates the VMs. -
provision.yml: This Ansible playbook installs the OVS/OVN components on each Vagrant machine. It's called automatically by Vagrant.
-
README.md: This file you're currently reading.
-
setup.sh.j2: This Jinja2 template is used by Ansible to build a customized OVS/OVN configuration script for each Vagrant machine. The shell script created by this template is placed by Ansible in
/home/vagrant/setup.sh. -
Vagrantfile: This file is used by Vagrant to spin up the virtual machines. This file is fairly extensively commented to help explain what's happening. You should be able to use this file unchanged; all the VM configuration options are stored outside this file.
Instructions
These instructions assume you've already installed Vagrant, your back-end virtualization provider (such as VMware Fusion or VirtualBox), and any necessary plugins (such as the Vagrant VMware plugin). Please refer to the documentation for those products for more information on installation or configuration.
-
Use
vagrant box addto add an Ubuntu 16.04 box to your system. The "bento/ubuntu-16.04" box is very good for both VirtualBox and VMware Fusion/Workstation. (Note that the "ubuntu/xenial64" box for VirtualBox is currently broken under Vagrant.) -
Edit the
machines.ymlfile to ensure the box you downloaded in step 1 is specified on the "box:" sections of this file. Specify the name of a VMware-formatted box on the "vmw:" line; place the name of a VirtualBox-formatted box on the "vb:" line. -
Run
vagrant upto have Vagrant instantiate the three machines configured by default in this environment, and provision them using Ansible. (Note you'll need Ansible installed locally on the system where you're runningvagrant up.) -
Use
vagrant ssh ovn-01to log into the first system. Runsudo ./setup.shto perform final configuration steps for OVS/OVN. -
Repeat step #4 with
ovn-02andovn-03.
You now have a three-node system running OVN. The OVN central components are running on "ovn-01".
Enjoy!