From: arvindpatel Date: Sun, 1 Nov 2020 19:37:54 +0000 (+0530) Subject: eg_set-helm-repo install role added X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=1ec2cb1ca3cd8db7b8d3965d060cc33c8bcda391;p=ealt-edge.git eg_set-helm-repo install role added Signed-off-by: arvindpatel Change-Id: I3fa77d8b42d6caa58cd2ac1f340215c0119bc65e --- diff --git a/ocd/infra/playbooks/roles/eg_set-helm-repo/tasks/install.yml b/ocd/infra/playbooks/roles/eg_set-helm-repo/tasks/install.yml new file mode 100644 index 0000000..bc779fc --- /dev/null +++ b/ocd/infra/playbooks/roles/eg_set-helm-repo/tasks/install.yml @@ -0,0 +1,29 @@ +# +# 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: Import config file + include_vars: + file: ../../../config.yml + name: vardata + +- name: Add adgegallery repo in private IP + # yamllint disable rule:line-length + command: helm repo add edgegallery http://{{ vardata.helmrepoip.name}}:8080/edgegallery + +- name: Add stable repo in private IP + command: helm repo add stable http://{{ vardata.helmrepoip.name}}:8080/stable diff --git a/ocd/infra/playbooks/roles/eg_set-helm-repo/tasks/main.yml b/ocd/infra/playbooks/roles/eg_set-helm-repo/tasks/main.yml new file mode 100644 index 0000000..2c506fb --- /dev/null +++ b/ocd/infra/playbooks/roles/eg_set-helm-repo/tasks/main.yml @@ -0,0 +1,22 @@ +# +# 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 eg_set-helm-repo +- include: "install.yml" + static: false + when: operation == 'install'