Skip to content

Commit 514008d

Browse files
Merge pull request #468 from Chia-Network/cadt-prerelease-and-v2-config
Add CADT prerelease apt repo support and v2 config format
2 parents 0727413 + 35abed0 commit 514008d

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ playbook.yml
44
hosts
55
/vars/
66
*.swp
7+
/worktrees/

cadt/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ climate_apps_domains:
55
- api2.example.com
66
cadt_api_proxy: true
77
cadt_api_version: latest
8+
cadt_apt_prerelease: false
89

910
# Path to the CADT API in the proxy - include leading and trailing slash
1011
cadt_api_proxy_path: "/api/"

cadt/tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
99
- 'vars'
1010
tags: cadt
1111

12+
- name: Remove unused CADT repository
13+
become: true
14+
ansible.builtin.apt_repository:
15+
repo: "deb [arch={{ cadt_repo_arch }} signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/{{ (cadt_apt_prerelease | bool) | ternary('cadt', 'cadt-test') }}/debian/ stable main"
16+
state: absent
17+
tags: cadt
18+
1219
- name: Add CADT Repository
1320
become: true
1421
ansible.builtin.apt_repository:
15-
repo: deb [arch={{ cadt_repo_arch }} signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/cadt/debian/ stable main
22+
repo: "deb [arch={{ cadt_repo_arch }} signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/{{ (cadt_apt_prerelease | bool) | ternary('cadt-test', 'cadt') }}/debian/ stable main"
1623
update_cache: true
1724
tags: cadt
1825

0 commit comments

Comments
 (0)