From fb99b1682f210caa4557ec19e2e1d359092fd401 Mon Sep 17 00:00:00 2001 From: "Scott S. Lowe" Date: Thu, 1 Dec 2016 20:02:03 -0700 Subject: [PATCH] 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 --- ovn/ansible.cfg | 5 +++++ ovn/provision.yml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 ovn/ansible.cfg create mode 100644 ovn/provision.yml diff --git a/ovn/ansible.cfg b/ovn/ansible.cfg new file mode 100644 index 0000000..b3a4567 --- /dev/null +++ b/ovn/ansible.cfg @@ -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 \ No newline at end of file diff --git a/ovn/provision.yml b/ovn/provision.yml new file mode 100644 index 0000000..521d3bd --- /dev/null +++ b/ovn/provision.yml @@ -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"