X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Finfra%2Fplaybooks%2Froles%2Feg_helm-repo%2Ftasks%2Finstall.yml;h=5624146547ad88005cedd8d051bd0e4f2f87a351;hb=a789f34faf8e5f9b371b53f77ebca58c6367287e;hp=d64cc1051cd50da976743d1e4dd47336bf7d8d31;hpb=32b3d8699b040d34d64c3f5a6097eeb9b214234a;p=ealt-edge.git diff --git a/ocd/infra/playbooks/roles/eg_helm-repo/tasks/install.yml b/ocd/infra/playbooks/roles/eg_helm-repo/tasks/install.yml index d64cc10..5624146 100644 --- a/ocd/infra/playbooks/roles/eg_helm-repo/tasks/install.yml +++ b/ocd/infra/playbooks/roles/eg_helm-repo/tasks/install.yml @@ -21,37 +21,40 @@ src: deploy dest: /tmp/eg_helm-repo/ -- name: Import vars +- name: Import config file include_vars: file: ../../../config.yml name: vardata -- name: Adding helm repo edgegallery +- name: Helm repo index edgegallery command: helm repo index edgegallery/ args: chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/ -- name: Adding helm repo stable +- name: Helm repo index stable command: helm repo index stable/ args: chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/ -- name: Adding helm repo - # yamllint disable rule:line-length - command: docker run --name helm-repo -v /tmp/eg_helm-repo/deploy/helm/helm-charts/:/usr/share/nginx/html:ro -d -p 8080:80 nginx:stable +- name: Changing permisiion + command: chmod -R 755 /tmp/eg_helm-repo + +- name: Creating helm repo # yamllint disable rule:line-length + command: docker run --name helm-repo -v /tmp/eg_helm-repo/deploy/helm/helm-charts/:/usr/share/nginx/html:ro -d -p 8080:80 nginx:stable args: chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/ -- name: Add repo in adgegallery private IP - command: helm repo add edgegallery http://{{ vardata.helmrepoip.name}}:8080/edgegallery +- name: Helm repo add edgegallery + # yamllint disable rule:line-length + command: helm repo add edgegallery http://{{ vardata.private_repo_ip.name}}:8080/edgegallery args: chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/ -- name: Add stable repo in given IP - command: helm repo add stable http://{{ vardata.helmrepoip.name}}:8080/stable +- name: Helm repo add stable + command: helm repo add stable http://{{ vardata.private_repo_ip.name}}:8080/stable args: chdir: /tmp/eg_helm-repo/deploy/helm/helm-charts/ - debug: - msg: "Helm repo added successfully" + msg: "Helm repo created"