Samuli Silvius | 8fd2314 | 2019-04-17 19:42:59 +0300 | [diff] [blame^] | 1 | --- |
| 2 | - name: Create Application helm charts directory |
| 3 | file: |
| 4 | path: "{{ app_helm_charts_install_directory }}" |
| 5 | state: directory |
| 6 | delegate_to: localhost |
| 7 | |
| 8 | - name: Create Makefile to simulate helm charts dir and make building |
| 9 | copy: |
| 10 | content: | |
| 11 | all: |
| 12 | onap: |
| 13 | dest: "{{ app_helm_charts_install_directory }}/Makefile" |
| 14 | delegate_to: localhost |
| 15 | when: simulate_helm |
| 16 | |
| 17 | - name: Clean previous simulation output file |
| 18 | file: |
| 19 | path: "{{ helm_simulation_output_file }}" |
| 20 | state: absent |
| 21 | |
| 22 | - name: simulate helm binary |
| 23 | copy: |
| 24 | content: | |
| 25 | #!/bin/bash |
| 26 | echo "$@" >> {{ helm_simulation_output_file }} |
| 27 | dest: "{{ helm_bin_dir }}/helm" |
| 28 | mode: 0755 |
| 29 | when: simulate_helm |
| 30 | |
| 31 | - name: Install make |
| 32 | package: |
| 33 | name: make |
| 34 | state: present |
| 35 | |
| 36 | - name: Create local certs dir for dummy certs |
| 37 | file: |
| 38 | path: certs |
| 39 | state: directory |
| 40 | delegate_to: localhost |
| 41 | |
| 42 | - name: Create dummy cert file to simulate offline server certificates in helm install with override.yml file |
| 43 | copy: |
| 44 | content: | |
| 45 | this is dummy server certificate value |
| 46 | dest: certs/rootCA.crt |
| 47 | delegate_to: localhost |