Commit initial Ansible files

Add `ansible.cfg` and `provision.yml` as initial versions of Ansible configuration/provisioning tools to turn up the OVN environment (will be called by Vagrant)

Signed-off-by: Scott S. Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
Scott S. Lowe 2016-12-01 20:02:03 -07:00
parent 217e3f5af6
commit fb99b1682f
2 changed files with 27 additions and 0 deletions

5
ovn/ansible.cfg Normal file
View file

@ -0,0 +1,5 @@
[defaults]
inventory = ./.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
private_key_file = ~/.vagrant.d/insecure_private_key
remote_user = vagrant
host_key_checking = False

22
ovn/provision.yml Normal file
View file

@ -0,0 +1,22 @@
---
- hosts: "all"
become: "yes"
remote_user: "vagrant"
tasks:
- name: "Add Ubuntu Cloud Archive repository"
apt_repository:
repo: "{{ item }}"
state: "present"
with_items:
- "deb http://cloud.archive.ubuntu.com/ubuntu newton main"
- name: "Install OVS/OVN 2.6.0"
apt:
state: "present"
update_cache: "yes"
name: "{{ item }}"
with_items:
- "openvswitch-switch"
- "openvswitch-common"
- "ovn-controller"