4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 - name: create the necessary directories
21 - "{{ caas.helm_home }}/repository"
22 - "{{ caas.helm_home }}/repository/local"
24 - name: allowing cloud_admin_user to access helm_home folder recursively
26 path: "{{ caas.helm_home }}"
27 entity: "{{ users.admin_user_name }}"
35 - name: applies the effective rights mask to the helm_home folder recursively
37 path: "{{ caas.helm_home }}"
45 - name: touch the repository file
48 owner: "{{ users.admin_user_name }}"
49 group: "{{ users.admin_user_name }}"
50 dest: "{{ caas.helm_home }}/repository/repositories.yaml"
52 - name: create the local repository file
57 owner: "{{ users.admin_user_name }}"
58 group: "{{ users.admin_user_name }}"
59 dest: "{{ caas.helm_home }}/repository/local/index.yaml"
62 shell: "HELM_HOME={{ caas.helm_home }} helm init -c --skip-refresh"
64 - name: add the chart-repo to helm repositories
65 shell: "HELM_HOME={{ caas.helm_home }} /usr/bin/helm repo add default {{ caas.chart_repo }}/charts"
67 until: res.stdout | search('has been added to your repositories')