Skip to content

Commit 64de2ea

Browse files
committed
Use independent defaults for V2 configuration
V2 should not inherit from V1's legacy single-value variables. Defaulting to null/false ensures V2 must be explicitly configured when enabled.
1 parent 40b3807 commit 64de2ea

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cadt/defaults/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ cadt_v1_db_password: "{{ cadt_db_password }}"
8282
cadt_v1_db_name: "{{ cadt_db_name }}"
8383
cadt_v1_db_host: "{{ cadt_db_host }}"
8484

85-
# V2 configuration - disabled by default
85+
# V2 configuration - disabled by default, must be explicitly configured
8686
cadt_v2_enable: false
87-
cadt_v2_read_only: "{{ cadt_read_only }}"
88-
cadt_v2_api_key: "{{ cadt_api_key }}"
89-
cadt_v2_is_governance_body: "{{ cadt_is_governance_body }}"
90-
cadt_v2_governance_body_id: "{{ cadt_governance_body_id }}"
91-
cadt_v2_db_username: "{{ cadt_db_username }}"
92-
cadt_v2_db_password: "{{ cadt_db_password }}"
93-
cadt_v2_db_name: "{{ cadt_db_name }}"
94-
cadt_v2_db_host: "{{ cadt_db_host }}"
87+
cadt_v2_read_only: false
88+
cadt_v2_api_key: null
89+
cadt_v2_is_governance_body: false
90+
cadt_v2_governance_body_id: null
91+
cadt_v2_db_username: null
92+
cadt_v2_db_password: null
93+
cadt_v2_db_name: null
94+
cadt_v2_db_host: null
9595

9696
# Backups
9797
backup_base_dir: /home/{{ user }}/backup

0 commit comments

Comments
 (0)