X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=scenarios%2Fk8-calico-nofeature%2Frole%2Fk8-calico-nofeature%2Ftasks%2Fmain.yml;h=e01c7ae78f31750228df04afccc054342addfcd2;hb=HEAD;hp=5b2939f1793f2a9bd0bf32e1e0633bac2268e422;hpb=f3b67171e055dee18ef22251d6a4f07c40333953;p=releng-xci-scenarios.git diff --git a/scenarios/k8-calico-nofeature/role/k8-calico-nofeature/tasks/main.yml b/scenarios/k8-calico-nofeature/role/k8-calico-nofeature/tasks/main.yml index 5b2939f..e01c7ae 100644 --- a/scenarios/k8-calico-nofeature/role/k8-calico-nofeature/tasks/main.yml +++ b/scenarios/k8-calico-nofeature/role/k8-calico-nofeature/tasks/main.yml @@ -1,4 +1,6 @@ +--- ############################################################################## +# Copyright (c) 2019 Ericsson Software Technology and others. # Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others. # # All rights reserved. This program and the accompanying materials @@ -6,9 +8,12 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## ---- -- name: copy k8s-cluster.yml - copy: - src: "k8s-cluster.yml" - dest: "{{ remote_xci_path }}/.cache/repos/kubespray/opnfv_inventory/group_vars/k8s-cluster.yml" +# set networking plugin to calico +- name: Set network plugin to calico + lineinfile: + path: "{{ remote_xci_path }}/.cache/repos/kubespray/inventory/opnfv/group_vars/k8s-cluster/k8s-cluster.yml" + regexp: "^kube_network_plugin:.*" + line: "kube_network_plugin: calico" + +# vim: set ts=2 sw=2 expandtab: