|
39 | 39 | dest: "/tmp/sdcore-5g-values.yaml"
|
40 | 40 | when: inventory_hostname in groups['master_nodes']
|
41 | 41 |
|
| 42 | +- set_fact: |
| 43 | + chart_ref_sd_core: "{{ core.helm.chart_ref | regex_replace('^(.*)/.*$', '\\1') }}" |
| 44 | + when: inventory_hostname in groups['master_nodes'] and core.helm.local_charts |
| 45 | + |
| 46 | +- debug: |
| 47 | + var: "chart_ref_sd_core" |
| 48 | + when: inventory_hostname in groups['master_nodes'] and core.helm.local_charts |
| 49 | + |
| 50 | +- name: copy local_charts "{{ chart_ref_sd_core }}" to /tmp/sdcore-helm-charts |
| 51 | + synchronize: |
| 52 | + src: "{{ chart_ref_sd_core }}/" |
| 53 | + dest: /tmp/sdcore-helm-charts |
| 54 | + recursive: yes |
| 55 | + rsync_opts: |
| 56 | + - "--exclude=.git" |
| 57 | + when: inventory_hostname in groups['master_nodes'] and core.helm.local_charts |
| 58 | + |
| 59 | +- set_fact: |
| 60 | + chart_ref_sd_core: "/tmp/sdcore-helm-charts/{{ core.helm.chart_ref | regex_replace('^.*/(.*)$', '\\1') }}" |
| 61 | + when: inventory_hostname in groups['master_nodes'] and core.helm.local_charts |
| 62 | + |
| 63 | +- debug: |
| 64 | + var: "chart_ref_sd_core" |
| 65 | + when: inventory_hostname in groups['master_nodes'] and core.helm.local_charts |
| 66 | + |
42 | 67 | - name: update aether 5gc helm dependencies
|
43 | 68 | shell: |
|
44 |
| - helm dep up "{{ core.helm.chart_ref }}" |
| 69 | + helm dep up {{chart_ref_sd_core}} |
45 | 70 | when: inventory_hostname in groups['master_nodes'] and core.helm.local_charts
|
46 | 71 |
|
47 | 72 | # TODO: add systems check to avoid issues (e.g., mongodb needing avx support)
|
|
53 | 78 | name: sd-core
|
54 | 79 | release_namespace: omec
|
55 | 80 | create_namespace: true
|
56 |
| - chart_ref: "{{ core.helm.chart_ref }}" |
| 81 | + chart_ref: "{{ core.helm.chart_ref if core.helm.local_charts == false else chart_ref_sd_core }}" |
57 | 82 | chart_version: "{{ core.helm.chart_version }}"
|
58 | 83 | values_files:
|
59 | 84 | - /tmp/sdcore-5g-values.yaml
|
|
0 commit comments