Influxdb and openebs code 68/3968/3
authorarvindpatel <arvind.patel@huawei.com>
Fri, 4 Dec 2020 01:52:21 +0000 (07:22 +0530)
committerarvindpatel <arvind.patel@huawei.com>
Fri, 4 Dec 2020 04:44:11 +0000 (10:14 +0530)
Signed-off-by: arvindpatel <arvind.patel@huawei.com>
Change-Id: I477318d9b1c344cd6326d77fc0359dfa989f5555

ocd/infra/playbooks/ealt-all-uninstall.yml
ocd/infra/playbooks/ealt-all.yml
ocd/infra/playbooks/roles/influxdb/tasks/install.yml [new file with mode: 0644]
ocd/infra/playbooks/roles/influxdb/tasks/main.yml [new file with mode: 0644]
ocd/infra/playbooks/roles/influxdb/tasks/uninstall.yml [new file with mode: 0644]
ocd/infra/playbooks/roles/openebsrole/tasks/install.yml [new file with mode: 0644]
ocd/infra/playbooks/roles/openebsrole/tasks/main.yml [new file with mode: 0644]
ocd/infra/playbooks/roles/openebsrole/tasks/uninstall.yml [new file with mode: 0644]

index f3e24f2..71f0d44 100644 (file)
     - kubeconfig
     - mepkubeconfig
     - cadvisor
+    - influxdb
+    - openebsrole
 
 ### Pre-Requisites ###
 
index bfcb3dd..2a9c588 100644 (file)
     - kubeconfig
     - mepkubeconfig
     - cadvisor
+    - influxdb
+    - openebsrole
 
 ### EdgeGallery related ###
 
diff --git a/ocd/infra/playbooks/roles/influxdb/tasks/install.yml b/ocd/infra/playbooks/roles/influxdb/tasks/install.yml
new file mode 100644 (file)
index 0000000..bdffd3b
--- /dev/null
@@ -0,0 +1,25 @@
+#
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+
+- name: "INSTALL: Install influxdata by helm charts"
+  shell:
+    cmd: helm repo add influxdata https://influxdata.github.io/helm-charts
+
+- name: "INSTALL: Deploye influxdata"
+  shell:
+    cmd: helm upgrade -i influxdb influxdata/influxdb --set image.tag=1.8.0
diff --git a/ocd/infra/playbooks/roles/influxdb/tasks/main.yml b/ocd/infra/playbooks/roles/influxdb/tasks/main.yml
new file mode 100644 (file)
index 0000000..ddbcf0b
--- /dev/null
@@ -0,0 +1,26 @@
+#
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+# tasks file for influxdb
+
+- include: "install.yml"
+  static: false
+  when: operation == 'install'
+
+- include: "uninstall.yml"
+  static: false
+  when: operation == 'uninstall'
diff --git a/ocd/infra/playbooks/roles/influxdb/tasks/uninstall.yml b/ocd/infra/playbooks/roles/influxdb/tasks/uninstall.yml
new file mode 100644 (file)
index 0000000..94aa886
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+
+- name: Uninstalling influxdb
+  shell:
+    cmd: helm uninstall influxdb
diff --git a/ocd/infra/playbooks/roles/openebsrole/tasks/install.yml b/ocd/infra/playbooks/roles/openebsrole/tasks/install.yml
new file mode 100644 (file)
index 0000000..6a15fab
--- /dev/null
@@ -0,0 +1,33 @@
+#
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+
+- name: "create namespace openebs"
+  shell:
+    cmd: kubectl create ns openebs
+
+- name: "INSTALL: add helm repo add aarch64"
+  shell:
+    cmd: helm repo add openebs https://openebs.github.io/charts
+
+- name: "INSTALL: helm repo update aarch64"
+  shell:
+    cmd: helm repo update
+
+- name: "INSTALL: Install on Openebs aarch64"
+  shell:
+  cmd: helm install --namespace openebs  --generate-name openebs --version 2.3.0
diff --git a/ocd/infra/playbooks/roles/openebsrole/tasks/main.yml b/ocd/infra/playbooks/roles/openebsrole/tasks/main.yml
new file mode 100644 (file)
index 0000000..51b1c39
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+
+# tasks file for sample-rolename
+
+- include: "install.yml"
+  static: false
+  when: operation == 'install'
+
+- include: "uninstall.yml"
+  static: false
+  when: operation == 'uninstall'
diff --git a/ocd/infra/playbooks/roles/openebsrole/tasks/uninstall.yml b/ocd/infra/playbooks/roles/openebsrole/tasks/uninstall.yml
new file mode 100644 (file)
index 0000000..5d8ef9a
--- /dev/null
@@ -0,0 +1,21 @@
+#
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+
+- name: Uninstall openebs
+  shell:
+    cmd: kubectl delete ns openebs