File tree Expand file tree Collapse file tree 18 files changed +91
-216
lines changed
common/inventory/group_vars/all Expand file tree Collapse file tree 18 files changed +91
-216
lines changed Original file line number Diff line number Diff line change @@ -64,5 +64,5 @@ roles/*
64
64
! roles /k9s /**
65
65
! roles /lustre /
66
66
! roles /lustre /**
67
- ! roles /release_train /
68
- ! roles /release_train /**
67
+ ! roles /dnf_repos /
68
+ ! roles /dnf_repos /**
Original file line number Diff line number Diff line change 69
69
tasks_from : install.yml
70
70
when : " 'openhpc' in group_names"
71
71
72
+ - name : Install Apache PAM module # Extracted from start of roles/openondemand/tasks/pam_auth.yml to ensure only installed during build
73
+ yum :
74
+ name : mod_authnz_pam
75
+
72
76
# - import_playbook: portal.yml
73
77
- name : Open Ondemand server (packages)
74
78
include_role :
Original file line number Diff line number Diff line change
1
+ dnf_repos_rocky_ark_prefix : https://ark.stackhpc.com/pulp/content/{{ ansible_distribution | lower }}/9.4
2
+ dnf_repos_rocky_ark_suffix : " {{ ansible_architecture }}/os/{{ dnf_repos_ark_timestamp }}/"
3
+ # most stable from https://github.com/stackhpc/stackhpc-kayobe-config/blob/stackhpc/2024.1/etc/kayobe/pulp-repo-versions.yml
4
+ # note that some timestamps can't be used because not all repos have snapshots for them
5
+ dnf_repos_ark_timestamp : 20240816T002610
6
+ dnf_repos_username : slurm-app-ci
7
+ dnf_repos_password : " {{ lookup('ansible.builtin.env', 'ARK_PASSWORD') }}"
8
+
9
+ # epel installed separately
10
+ dnf_repos_repolist :
11
+ - file : rocky
12
+ name : baseos
13
+ base_url : " {{ dnf_repos_rocky_ark_prefix }}/BaseOS/{{ dnf_repos_rocky_ark_suffix }}"
14
+ - file : rocky
15
+ name : appstream
16
+ base_url : " {{ dnf_repos_rocky_ark_prefix }}/AppStream/{{ dnf_repos_rocky_ark_suffix }}"
17
+ - file : rocky
18
+ name : crb
19
+ base_url : " {{ dnf_repos_rocky_ark_prefix }}/AppStream/{{ dnf_repos_rocky_ark_suffix }}"
20
+ - file : rocky-extras
21
+ name : extras
22
+ base_url : " {{ dnf_repos_rocky_ark_prefix }}/extras/{{ dnf_repos_rocky_ark_suffix }}"
23
+
24
+ dnf_repos_epel_baseurl : https://ark.stackhpc.com/pulp/content/epel/9/Everything/x86_64/20240902T080424
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Disable Pulp repos and remove creds
3
+ ansible.builtin.yum_repository :
4
+ file : " {{ item.file }}"
5
+ name : " {{ item.name }}"
6
+ baseurl : " {{ item.base_url }}"
7
+ description : " {{ item.name }}"
8
+ enabled : false
9
+ loop : " {{ dnf_repos_repolist }}"
10
+
11
+ - name : Disable EPEL repo and remove creds
12
+ ansible.builtin.yum_repository :
13
+ name : epel
14
+ file : epel
15
+ description : epel
16
+ baseurl : " {{ dnf_repos_epel_baseurl }}"
17
+ gpgcheck : false
18
+ enabled : false
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ - name : Replace system repos with Pulp repos
4
+ ansible.builtin.yum_repository :
5
+ file : " {{ item.file }}"
6
+ name : " {{ item.name }}"
7
+ baseurl : " {{ item.base_url }}"
8
+ description : " {{ item.name }}"
9
+ username : " {{ dnf_repos_username }}"
10
+ password : " {{ dnf_repos_password }}"
11
+ loop : " {{ dnf_repos_repolist }}"
12
+
13
+ - name : Install epel-release
14
+ ansible.builtin.dnf :
15
+ name : epel-release
16
+
17
+ - name : Use Pulp EPEL repo
18
+ ansible.builtin.yum_repository :
19
+ name : epel
20
+ file : epel
21
+ description : epel
22
+ gpgcheck : false
23
+ username : " {{ dnf_repos_username }}"
24
+ password : " {{ dnf_repos_password }}"
25
+ baseurl : " {{ dnf_repos_epel_baseurl }}"
Original file line number Diff line number Diff line change 12
12
tasks_from : install-package.yml
13
13
vars_from : " Rocky/{{ ansible_distribution_major_version }}.yml"
14
14
public : yes # Expose the vars from this role to the rest of the play
15
+ when : appliances_mode != 'configure'
15
16
# can't set vars: from a dict hence the workaround above
16
17
17
18
- include_tasks :
Original file line number Diff line number Diff line change 1
1
# https://osc.github.io/ood-documentation/latest/authentication/pam.html
2
2
---
3
- - name : Install Apache PAM module
4
- yum :
5
- name : mod_authnz_pam
6
3
7
4
- name : Enable Apache PAM module
8
5
lineinfile :
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments