aboutsummaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2019-06-19 04:46:17 +0000
committerRitu Sood <ritu.sood@intel.com>2019-06-19 04:47:29 +0000
commitc0b239b995f7497199186182f8b6cb682b8d1b40 (patch)
treed001b8dae0459fbc4e170bb3dd9a6ca083ac0d40 /kud/deployment_infra
parentf30199f018ae167df804c23079eb4bcec6c10f34 (diff)
Add ovn-networkobj for Multus
Add ovn custom resource for Multus as part of installation Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I4e01a06ba76515fa271790b461f473045eb174a2 Issue-ID: MULTICLOUD-670
Diffstat (limited to 'kud/deployment_infra')
-rw-r--r--kud/deployment_infra/playbooks/configure-ovn4nfv.yml26
1 files changed, 26 insertions, 0 deletions
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