Skip to content

Commit 4985f3a

Browse files
authored
Merge pull request #832 from stackhpc/feat/all-ark-repofiles
Use Ark repofiles for additional repos
2 parents f116de2 + eec97ea commit 4985f3a

File tree

7 files changed

+67
-20
lines changed

7 files changed

+67
-20
lines changed

ansible/roles/dnf_repos/tasks/disable_repos.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
loop: "{{ dnf_repos_repos | dict2items }}"
1111
loop_control:
1212
label: "{{ repo_name }}[{{ repo_os }}]: {{ repo_values }}"
13+
when: repo_values | length > 0
1314
vars:
1415
repo_os: "{{ ansible_distribution_version if ansible_distribution_version in item.value else ansible_distribution_major_version }}"
15-
repo_values: "{{ item.value[repo_os] }}"
16+
repo_values: "{{ item.value.get(repo_os, {}) }}"
1617
repo_name: "{{ repo_values.repo_name | default(item.key) }}"
1718
repo_content_url: "{{ repo_values.pulp_content_url | default(dnf_repos_pulp_content_url) }}"
1819

ansible/roles/dnf_repos/tasks/set_repos.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
loop: "{{ dnf_repos_repos | dict2items }}"
1313
loop_control:
1414
label: "{{ repo_name }}[{{ repo_os }}]: {{ repo_values }}"
15-
when: repo_name != 'epel'
15+
when:
16+
- repo_name != 'epel'
17+
- repo_values | length > 0
1618
vars:
1719
repo_os: "{{ ansible_distribution_version if ansible_distribution_version in item.value else ansible_distribution_major_version }}"
18-
repo_values: "{{ item.value[repo_os] }}"
20+
repo_values: "{{ item.value.get(repo_os, {}) }}"
1921
repo_name: "{{ repo_values.repo_name | default(item.key) }}"
2022
repo_content_url: "{{ repo_values.pulp_content_url | default(dnf_repos_pulp_content_url) }}"
2123

@@ -36,9 +38,11 @@
3638
loop: "{{ dnf_repos_repos | dict2items }}"
3739
loop_control:
3840
label: "{{ repo_name }}[{{ repo_os }}]: {{ repo_values }}"
39-
when: repo_name == 'epel'
41+
when:
42+
- repo_name == 'epel'
43+
- repo_values | length > 0
4044
vars:
4145
repo_os: "{{ ansible_distribution_version if ansible_distribution_version in item.value else ansible_distribution_major_version }}"
42-
repo_values: "{{ item.value[repo_os] }}"
46+
repo_values: "{{ item.value.get(repo_os, {}) }}"
4347
repo_name: "{{ repo_values.repo_name | default(item.key) }}"
4448
repo_content_url: "{{ repo_values.pulp_content_url | default(dnf_repos_pulp_content_url) }}"

ansible/roles/eessi/tasks/install.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
- name: Import downloaded GPG key # noqa: no-changed-when
1212
ansible.builtin.command: rpm --import cvmfs-key.gpg # noqa: command-instead-of-module
1313

14-
- name: Add CVMFS repo
15-
ansible.builtin.dnf:
16-
name: "https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-{{ cvmfs_release_version }}.noarch.rpm"
14+
# cvmfs repo provided by dnf_repos role
1715

1816
- name: Install CVMFS
1917
ansible.builtin.dnf:

ansible/roles/openondemand/defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ openondemand_osc_ood_defaults:
102102
ood_auth_openidc: "{{ openondemand_auth_defaults.oidc.ood_auth_openidc if (openondemand_auth | lower) == 'oidc' else none }}"
103103
httpd_auth: "{{ openondemand_auth_defaults[openondemand_auth | lower].httpd_auth }}"
104104

105+
# Use repo file provided by dnf_repos by default
106+
ood_use_existing_repo_file: true
107+
105108
openondemand_code_server_version: 4.102.2
106109
openondemand_rstudio_version: 2025.05.1-513
107110
openondemand_matlab_version: ''

ansible/roles/openondemand/tasks/vnc_compute.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
---
22
# Should be run on compute nodes you want to run the graphical desktop on
3-
- name: Enable TurboVNC repo
4-
tags: install
5-
ansible.builtin.get_url:
6-
url: https://raw.githubusercontent.com/TurboVNC/repo/main/TurboVNC.repo
7-
dest: /etc/yum.repos.d/TurboVNC.repo
8-
mode: "0644"
93

10-
- name: Install EPEL
11-
tags: install
12-
ansible.builtin.dnf:
13-
name: epel-release
4+
# EPEL and TurboVNC repos are provided by dnf_repos role
145

156
- name: Check /etc/init.d
167
ansible.builtin.stat:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"cluster_image": {
3-
"RL8": "openhpc-RL8-251021-1221-915ed3fc",
4-
"RL9": "openhpc-RL9-251021-1221-915ed3fc"
3+
"RL8": "openhpc-RL8-251027-1123-d389c00b",
4+
"RL9": "openhpc-RL9-251027-1123-d389c00b"
55
}
66
}

environments/common/inventory/group_vars/all/dnf_repo_timestamps.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ dnf_repos_default:
124124
pulp_path: epel/9/Everything/source
125125
pulp_timestamp: 20250923T001717
126126
repo_file: epel
127+
epel-cisco-openh264:
128+
'9':
129+
pulp_path: openh264/epel/9/x86_64/os
130+
pulp_timestamp: 20250925T130153
131+
repo_file: epel-cisco-openh264
127132
extras:
128133
'8.10':
129134
pulp_path: rocky/8.10/extras/x86_64/os
@@ -160,3 +165,48 @@ dnf_repos_default:
160165
pulp_path: grafana/oss/rpm
161166
pulp_timestamp: 20250917T024714
162167
repo_file: grafana
168+
ondemand-web:
169+
'8':
170+
pulp_path: ondemand/4.0/web/el8/x86_64
171+
pulp_timestamp: 20250925T130153
172+
repo_file: ondemand-web
173+
'9':
174+
pulp_path: ondemand/4.0/web/el9/x86_64
175+
pulp_timestamp: 20250925T130153
176+
repo_file: ondemand-web
177+
TurboVNC:
178+
'8':
179+
pulp_path: turbovnc/x86_64
180+
pulp_timestamp: 20251009T091906
181+
repo_file: TurboVNC
182+
'9':
183+
pulp_path: turbovnc/x86_64
184+
pulp_timestamp: 20251009T091906
185+
repo_file: TurboVNC
186+
TurboVNC-source:
187+
'8':
188+
pulp_path: turbovnc/srpms
189+
pulp_timestamp: 20251009T091906
190+
repo_file: TurboVNC
191+
'9':
192+
pulp_path: turbovnc/srpms
193+
pulp_timestamp: 20251009T091906
194+
repo_file: TurboVNC
195+
cernvmfs_pkgs:
196+
'8':
197+
pulp_path: cvmfs/EL/8/x86_64
198+
pulp_timestamp: 20250816T005446
199+
repo_file: cvmfs
200+
'9':
201+
pulp_path: cvmfs/EL/9/x86_64
202+
pulp_timestamp: 20250816T005446
203+
repo_file: cvmfs
204+
cernvmfs_cfg:
205+
'8':
206+
pulp_path: cvmfs-config/EL/8/x86_64
207+
pulp_timestamp: 20250805T130249
208+
repo_file: cvmfs
209+
'9':
210+
pulp_path: cvmfs-config/EL/9/x86_64
211+
pulp_timestamp: 20250805T130249
212+
repo_file: cvmfs

0 commit comments

Comments
 (0)