Add playbooks for v2 emco chart. 10/111810/7
authorTodd Malsbary <todd.malsbary@intel.com>
Fri, 7 Aug 2020 17:20:12 +0000 (10:20 -0700)
committerRitu Sood <ritu.sood@intel.com>
Wed, 23 Sep 2020 20:00:03 +0000 (20:00 +0000)
Rename v2/onap4k8s to v2/emco, and rename sanity-check-for-v2.sh to
emco.sh.  This allows --plugins emco to be passed to installer.sh in
place of --plugins onap4k8s.

Issue-ID: MULTICLOUD-1181
Signed-off-by: Todd <todd.malsbary@intel.com>
Change-Id: Idb427a8aa4c8aaff181965a540078c8cf6dd88aa

101 files changed:
deployments/helm/v2/emco/.helmignore [moved from deployments/helm/v2/onap4k8s/.helmignore with 100% similarity]
deployments/helm/v2/emco/Chart.yaml [moved from deployments/helm/v2/onap4k8s/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/Makefile [moved from deployments/helm/v2/onap4k8s/Makefile with 100% similarity]
deployments/helm/v2/emco/README.md [moved from deployments/helm/v2/onap4k8s/README.md with 100% similarity]
deployments/helm/v2/emco/clm/Chart.yaml [moved from deployments/helm/v2/onap4k8s/clm/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/clm/requirements.yaml [moved from deployments/helm/v2/onap4k8s/clm/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/clm/resources/config/config.json [moved from deployments/helm/v2/onap4k8s/clm/resources/config/config.json with 100% similarity]
deployments/helm/v2/emco/clm/templates/configmap.yaml [moved from deployments/helm/v2/onap4k8s/clm/templates/configmap.yaml with 100% similarity]
deployments/helm/v2/emco/clm/templates/deployment.yaml [moved from deployments/helm/v2/onap4k8s/clm/templates/deployment.yaml with 100% similarity]
deployments/helm/v2/emco/clm/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/clm/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/clm/values.yaml [moved from deployments/helm/v2/onap4k8s/clm/values.yaml with 100% similarity]
deployments/helm/v2/emco/common/Chart.yaml [moved from deployments/helm/v2/onap4k8s/common/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/common/templates/_deployment.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_deployment.tpl with 100% similarity]
deployments/helm/v2/emco/common/templates/_name.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_name.tpl with 100% similarity]
deployments/helm/v2/emco/common/templates/_namespace.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_namespace.tpl with 100% similarity]
deployments/helm/v2/emco/common/templates/_repository.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_repository.tpl with 100% similarity]
deployments/helm/v2/emco/common/templates/_resources.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_resources.tpl with 100% similarity]
deployments/helm/v2/emco/common/templates/_service.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_service.tpl with 100% similarity]
deployments/helm/v2/emco/common/templates/_servicemco.tpl [moved from deployments/helm/v2/onap4k8s/common/templates/_servicemco.tpl with 100% similarity]
deployments/helm/v2/emco/common/values.yaml [moved from deployments/helm/v2/onap4k8s/common/values.yaml with 100% similarity]
deployments/helm/v2/emco/emco-db/Chart.yaml [moved from deployments/helm/v2/onap4k8s/emco-db/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/emco-db/requirements.yaml [moved from deployments/helm/v2/onap4k8s/emco-db/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/emco-db/values.yaml [moved from deployments/helm/v2/onap4k8s/emco-db/values.yaml with 100% similarity]
deployments/helm/v2/emco/emco-services/Chart.yaml [moved from deployments/helm/v2/onap4k8s/emco-services/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/emco-services/requirements.yaml [moved from deployments/helm/v2/onap4k8s/emco-services/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/emco-services/values.yaml [moved from deployments/helm/v2/onap4k8s/emco-services/values.yaml with 100% similarity]
deployments/helm/v2/emco/emco-tools/Chart.yaml [moved from deployments/helm/v2/onap4k8s/emco-tools/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/emco-tools/requirements.yaml [moved from deployments/helm/v2/onap4k8s/emco-tools/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/emco-tools/values.yaml [moved from deployments/helm/v2/onap4k8s/emco-tools/values.yaml with 100% similarity]
deployments/helm/v2/emco/emco/Chart.yaml [moved from deployments/helm/v2/onap4k8s/emco/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/emco/requirements.yaml [moved from deployments/helm/v2/onap4k8s/emco/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/emco/values.yaml [moved from deployments/helm/v2/onap4k8s/emco/values.yaml with 100% similarity]
deployments/helm/v2/emco/etcd/.helmignore [moved from deployments/helm/v2/onap4k8s/etcd/.helmignore with 100% similarity]
deployments/helm/v2/emco/etcd/Chart.yaml [moved from deployments/helm/v2/onap4k8s/etcd/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/etcd/requirements.yaml [moved from deployments/helm/v2/onap4k8s/etcd/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/etcd/templates/pv.yaml [moved from deployments/helm/v2/onap4k8s/etcd/templates/pv.yaml with 100% similarity]
deployments/helm/v2/emco/etcd/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/etcd/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/etcd/templates/statefulset.yaml [moved from deployments/helm/v2/onap4k8s/etcd/templates/statefulset.yaml with 100% similarity]
deployments/helm/v2/emco/etcd/values.yaml [moved from deployments/helm/v2/onap4k8s/etcd/values.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/.helmignore [moved from deployments/helm/v2/onap4k8s/fluentd/.helmignore with 100% similarity]
deployments/helm/v2/emco/fluentd/Chart.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/README.md [moved from deployments/helm/v2/onap4k8s/fluentd/README.md with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/NOTES.txt [moved from deployments/helm/v2/onap4k8s/fluentd/templates/NOTES.txt with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/_helpers.tpl [moved from deployments/helm/v2/onap4k8s/fluentd/templates/_helpers.tpl with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/aggregator-configmap.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/aggregator-configmap.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/aggregator-statefulset.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/aggregator-statefulset.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/aggregator-svc.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/aggregator-svc.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/clusterrole.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/clusterrole.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/clusterrolebinding.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/clusterrolebinding.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/forwarder-configmap.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/forwarder-configmap.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/forwarder-daemonset.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/forwarder-daemonset.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/forwarder-svc.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/forwarder-svc.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/metrics-svc.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/metrics-svc.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/serviceaccount.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/serviceaccount.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/servicemonitor.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/servicemonitor.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/svc-headless.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/svc-headless.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/templates/tls-certs.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/templates/tls-certs.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/values-production.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/values-production.yaml with 100% similarity]
deployments/helm/v2/emco/fluentd/values.yaml [moved from deployments/helm/v2/onap4k8s/fluentd/values.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/.helmignore [moved from deployments/helm/v2/onap4k8s/mongo/.helmignore with 100% similarity]
deployments/helm/v2/emco/mongo/Chart.yaml [moved from deployments/helm/v2/onap4k8s/mongo/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/requirements.yaml [moved from deployments/helm/v2/onap4k8s/mongo/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/templates/nfs-provisoner.yaml [moved from deployments/helm/v2/onap4k8s/mongo/templates/nfs-provisoner.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/templates/pv.yaml [moved from deployments/helm/v2/onap4k8s/mongo/templates/pv.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/templates/pvc.yaml [moved from deployments/helm/v2/onap4k8s/mongo/templates/pvc.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/mongo/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/templates/statefulset.yaml [moved from deployments/helm/v2/onap4k8s/mongo/templates/statefulset.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/templates/storageclass.yaml [moved from deployments/helm/v2/onap4k8s/mongo/templates/storageclass.yaml with 100% similarity]
deployments/helm/v2/emco/mongo/values.yaml [moved from deployments/helm/v2/onap4k8s/mongo/values.yaml with 100% similarity]
deployments/helm/v2/emco/ncm/Chart.yaml [moved from deployments/helm/v2/onap4k8s/ncm/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/ncm/requirements.yaml [moved from deployments/helm/v2/onap4k8s/ncm/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/ncm/resources/config/config.json [moved from deployments/helm/v2/onap4k8s/ncm/resources/config/config.json with 100% similarity]
deployments/helm/v2/emco/ncm/templates/configmap.yaml [moved from deployments/helm/v2/onap4k8s/ncm/templates/configmap.yaml with 100% similarity]
deployments/helm/v2/emco/ncm/templates/deployment.yaml [moved from deployments/helm/v2/onap4k8s/ncm/templates/deployment.yaml with 100% similarity]
deployments/helm/v2/emco/ncm/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/ncm/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/ncm/values.yaml [moved from deployments/helm/v2/onap4k8s/ncm/values.yaml with 100% similarity]
deployments/helm/v2/emco/orchestrator/Chart.yaml [moved from deployments/helm/v2/onap4k8s/orchestrator/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/orchestrator/requirements.yaml [moved from deployments/helm/v2/onap4k8s/orchestrator/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/orchestrator/resources/config/config.json [moved from deployments/helm/v2/onap4k8s/orchestrator/resources/config/config.json with 100% similarity]
deployments/helm/v2/emco/orchestrator/templates/configmap.yaml [moved from deployments/helm/v2/onap4k8s/orchestrator/templates/configmap.yaml with 100% similarity]
deployments/helm/v2/emco/orchestrator/templates/deployment.yaml [moved from deployments/helm/v2/onap4k8s/orchestrator/templates/deployment.yaml with 100% similarity]
deployments/helm/v2/emco/orchestrator/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/orchestrator/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/orchestrator/values.yaml [moved from deployments/helm/v2/onap4k8s/orchestrator/values.yaml with 100% similarity]
deployments/helm/v2/emco/ovnaction/Chart.yaml [moved from deployments/helm/v2/onap4k8s/ovnaction/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/ovnaction/requirements.yaml [moved from deployments/helm/v2/onap4k8s/ovnaction/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/ovnaction/resources/config/config.json [moved from deployments/helm/v2/onap4k8s/ovnaction/resources/config/config.json with 100% similarity]
deployments/helm/v2/emco/ovnaction/templates/configmap.yaml [moved from deployments/helm/v2/onap4k8s/ovnaction/templates/configmap.yaml with 100% similarity]
deployments/helm/v2/emco/ovnaction/templates/deployment.yaml [moved from deployments/helm/v2/onap4k8s/ovnaction/templates/deployment.yaml with 100% similarity]
deployments/helm/v2/emco/ovnaction/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/ovnaction/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/ovnaction/values.yaml [moved from deployments/helm/v2/onap4k8s/ovnaction/values.yaml with 100% similarity]
deployments/helm/v2/emco/rsync/Chart.yaml [moved from deployments/helm/v2/onap4k8s/rsync/Chart.yaml with 100% similarity]
deployments/helm/v2/emco/rsync/requirements.yaml [moved from deployments/helm/v2/onap4k8s/rsync/requirements.yaml with 100% similarity]
deployments/helm/v2/emco/rsync/resources/config/config.json [moved from deployments/helm/v2/onap4k8s/rsync/resources/config/config.json with 100% similarity]
deployments/helm/v2/emco/rsync/templates/configmap.yaml [moved from deployments/helm/v2/onap4k8s/rsync/templates/configmap.yaml with 100% similarity]
deployments/helm/v2/emco/rsync/templates/deployment.yaml [moved from deployments/helm/v2/onap4k8s/rsync/templates/deployment.yaml with 100% similarity]
deployments/helm/v2/emco/rsync/templates/service.yaml [moved from deployments/helm/v2/onap4k8s/rsync/templates/service.yaml with 100% similarity]
deployments/helm/v2/emco/rsync/values.yaml [moved from deployments/helm/v2/onap4k8s/rsync/values.yaml with 100% similarity]
kud/deployment_infra/playbooks/configure-emco-reset.yml [new file with mode: 0644]
kud/deployment_infra/playbooks/configure-emco.yml [new file with mode: 0644]
kud/deployment_infra/playbooks/configure-onap4k8s-reset.yml
kud/tests/emco.sh [moved from kud/tests/sanity-check-for-v2.sh with 100% similarity]

diff --git a/kud/deployment_infra/playbooks/configure-emco-reset.yml b/kud/deployment_infra/playbooks/configure-emco-reset.yml
new file mode 100644 (file)
index 0000000..a4560cc
--- /dev/null
@@ -0,0 +1,56 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+- hosts: kube-master
+  tasks:
+    - name: Load kud variables
+      include_vars:
+        file: kud-vars.yml
+
+    - name: Change the emco directory and run helm delete
+      command: /usr/local/bin/helm delete --purge emco
+      register: helm_delete
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: helm_delete.stdout_lines
+
+    - name: Change the emco directory and delete the emco namespace
+      command: /usr/local/bin/kubectl delete ns emco
+      register: delete_emco_ns
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: delete_emco_ns.stdout_lines
+
+    - name: Change the emco directory and make clean
+      command: /usr/bin/make clean
+      register: make_clean
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: make_clean.stdout_lines
+
+    - name: Change the emco directory and make repo-stop
+      command: /usr/bin/make repo-stop
+      register: make_repo_stop
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: make_repo_stop.stdout_lines
+
+    - name: clean multicloud-k8s path
+      file:
+        state: absent
+        path: /opt/multicloud
diff --git a/kud/deployment_infra/playbooks/configure-emco.yml b/kud/deployment_infra/playbooks/configure-emco.yml
new file mode 100644 (file)
index 0000000..255ce6a
--- /dev/null
@@ -0,0 +1,55 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+- hosts: kube-master
+  tasks:
+    - name: Load kud variables
+      include_vars:
+        file: kud-vars.yml
+
+    - name: Getting emco code in /opt folder
+      git:
+        repo: 'https://github.com/onap/multicloud-k8s.git'
+        dest: /opt/multicloud
+
+    - name: install make package for ubuntu systems
+      apt: name=make state=present update_cache=yes
+      when: ansible_distribution == "Ubuntu"
+
+    - name: install make package for centos systems
+      yum: name=make state=present update_cache=yes
+      when: ansible_distribution == "CentOS"
+
+    - name: Change the emco directory and run the command make repo
+      command: /usr/bin/make repo
+      register: make_repo
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: make_repo.stdout_lines
+
+    - name: Change the emco directory and run the command make all
+      command: /usr/bin/make all
+      register: make_all
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: make_all.stdout_lines
+
+    - name: Change the emco directory and run the command helm install
+      command: /usr/local/bin/helm install dist/packages/emco-0.1.0.tgz --name emco --namespace emco
+      register: helm_install
+      args:
+        chdir: /opt/multicloud/deployments/helm/v2/emco
+
+    - debug:
+        var: helm_install.stdout_lines
index 6adaf2e..d6f2f6b 100644 (file)
@@ -23,7 +23,7 @@
     - debug:
         var: helm_delete.stdout_lines
 
-    - name: Change the onap4k8s directory and delete the ona4k8s-ns namespace
+    - name: Change the onap4k8s directory and delete the onap4k8s-ns namespace
       command: /usr/local/bin/kubectl delete ns onap4k8s-ns
       register: delete_onap_ns
       args: