From c0b239b995f7497199186182f8b6cb682b8d1b40 Mon Sep 17 00:00:00 2001 From: Ritu Sood Date: Wed, 19 Jun 2019 04:46:17 +0000 Subject: Add ovn-networkobj for Multus Add ovn custom resource for Multus as part of installation Signed-off-by: Ritu Sood Change-Id: I4e01a06ba76515fa271790b461f473045eb174a2 Issue-ID: MULTICLOUD-670 --- .../playbooks/configure-ovn4nfv.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'kud') diff --git a/kud/deployment_infra/playbooks/configure-ovn4nfv.yml b/kud/deployment_infra/playbooks/configure-ovn4nfv.yml index f8dabd9d..2d1a11d0 100644 --- a/kud/deployment_infra/playbooks/configure-ovn4nfv.yml +++ b/kud/deployment_infra/playbooks/configure-ovn4nfv.yml @@ -96,3 +96,29 @@ name: ovn4nfvk8s state: started enabled: yes + +- hosts: localhost + pre_tasks: + - name: Load kud variables + include_vars: + file: kud-vars.yml + tasks: + - name: define a CRD network object specification + blockinfile: + path: /tmp/ovn4nfvnetwork.yml + create: yes + block: | + apiVersion: k8s.cni.cncf.io/v1 + kind: NetworkAttachmentDefinition + metadata: + name: ovn-networkobj + spec: + config: '{ + "cniVersion": "0.3.1", + "name": "ovn4nfv-k8s-plugin", + "type": "ovn4nfvk8s-cni" + }' + + - name: create network objects + shell: "/usr/local/bin/kubectl apply -f /tmp/ovn4nfvnetwork.yml" + ignore_errors: True -- cgit 1.2.3-korg