-
Notifications
You must be signed in to change notification settings - Fork 9
/
facts.yaml
44 lines (40 loc) · 1.5 KB
/
facts.yaml
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
---
- name: Set environment variables fact
ansible.builtin.set_fact:
helm_environment_vars:
HELM_CACHE_HOME: '{{ helm_vars.directory.share }}/cache'
HELM_CONFIG_HOME: '{{ helm_vars.directory.share }}/config'
HELM_DATA_HOME: '{{ helm_vars.directory.share }}'
HELM_PLUGINS: '{{ helm_vars.directory.share }}/plugins'
HELM_REGISTRY_CONFIG: '{{ helm_vars.directory.share }}/config/registry/config.json'
HELM_REPOSITORY_CACHE: '{{ helm_vars.directory.share }}/cache/repository'
HELM_REPOSITORY_CONFIG: '{{ helm_vars.directory.share }}/config/repositories.yaml'
run_once: true
- name: Set plugin packages fact
ansible.builtin.set_fact:
helm_plugin_packages: '{{ plugin.packages }}'
loop: '{{ helm_vars.plugins }}'
loop_control:
loop_var: plugin
run_once: true
when:
- plugin.enabled
- plugin.packages is defined
- name: Set plugin packages disabled fact
ansible.builtin.set_fact:
helm_plugin_packages_disabled: '{{ plugin.packages }}'
loop: '{{ helm_vars.plugins }}'
loop_control:
loop_var: plugin
run_once: true
when:
- not plugin.enabled
- plugin.packages is defined
- name: Set release channel fact
ansible.builtin.set_fact:
helm_release_channel: '{{ helm_vars.release.repository.url }}/{{ helm_vars.release.repository.channel }}'
run_once: true
- name: Set release key fact
ansible.builtin.set_fact:
helm_release_key: '{{ helm_vars.release.repository.url }}/{{ helm_vars.release.repository.key }}'
run_once: true