blob: 75abb802fa5f289866142f44a83815c9190aea9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
---
- name: Create application role mocked artifacts directories
file:
path: "{{ item }}"
state: directory
delegate_to: localhost
loop:
- "{{ app_helm_charts_install_directory }}"
- certs
- "{{ application_pre_install_role + '/tasks/' }}"
- "{{ application_post_install_role + '/tasks/' }}"
- name: Create Makefile to simulate helm charts dir and make building
copy:
content: |
all:
onap:
dest: "{{ app_helm_charts_install_directory }}/Makefile"
delegate_to: localhost
when: simulate_helm
- name: Clean previous simulation output file
file:
path: "{{ helm_simulation_output_file }}"
state: absent
- name: simulate helm binary
copy:
content: |
#!/bin/bash
echo "$@" >> {{ helm_simulation_output_file }}
dest: "{{ helm_bin_dir }}/helm"
mode: 0755
when: simulate_helm
- name: Install make
package:
name: make
state: present
- name: Create dummy cert file to simulate offline server certificates in helm install with override.yml file
copy:
content: |
this is dummy server certificate value
dest: certs/rootCA.crt
delegate_to: localhost
- name: Create test patch role files
copy:
content: |
---
- name: Mocked up patch role
debug:
msg: "Noop task to mock up patch role"
dest: application/test-patch-role/tasks/main.yml
delegate_to: localhost
|