Skip to content

Commit 0bc473c

Browse files
committed
fixed ood install with disbaled repos + fixed ark CRB typo
1 parent 6faf919 commit 0bc473c

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

ansible/fatimage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@
6969
tasks_from: install.yml
7070
when: "'openhpc' in group_names"
7171

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-
7672
# - import_playbook: portal.yml
7773
- name: Open Ondemand server (packages)
7874
include_role:
@@ -102,6 +98,10 @@
10298
tasks_from: jupyter_compute.yml
10399
when: "'openondemand_jupyter' in group_names"
104100

101+
- name: Install Apache PAM module # Extracted from start of roles/openondemand/tasks/pam_auth.yml to ensure only installed during build
102+
yum:
103+
name: mod_authnz_pam
104+
105105
# - import_playbook: monitoring.yml:
106106
- import_role:
107107
name: opensearch

ansible/roles/dnf_repos/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dnf_repos_repolist:
1616
base_url: "{{ dnf_repos_rocky_ark_prefix }}/AppStream/{{ dnf_repos_rocky_ark_suffix }}"
1717
- file: rocky
1818
name: crb
19-
base_url: "{{ dnf_repos_rocky_ark_prefix }}/AppStream/{{ dnf_repos_rocky_ark_suffix }}"
19+
base_url: "{{ dnf_repos_rocky_ark_prefix }}/CRB/{{ dnf_repos_rocky_ark_suffix }}"
2020
- file: rocky-extras
2121
name: extras
2222
base_url: "{{ dnf_repos_rocky_ark_prefix }}/extras/{{ dnf_repos_rocky_ark_suffix }}"

ansible/roles/openondemand/tasks/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@
66
loop: "{{ openondemand_osc_ood_defaults | dict2items }}"
77
when: (item.key in hostvars[inventory_hostname]) or (item.value)
88

9+
# osc.ood variables are exposed to play here instead of setting 'public' in include role so that they will still be exposed during runtime
10+
- ansible.builtin.include_vars:
11+
dir: "{{ playbook_dir }}/roles/osc.ood/defaults/main"
12+
13+
- ansible.builtin.include_vars:
14+
file: "{{ playbook_dir }}/roles/osc.ood/vars/Rocky/{{ ansible_distribution_major_version }}.yml"
15+
916
# if using PAM auth we need apache installed but NOT started so split the osc.ood role up:
1017
- include_role:
1118
name: osc.ood
1219
tasks_from: install-package.yml
1320
vars_from: "Rocky/{{ ansible_distribution_major_version }}.yml"
14-
public: yes # Expose the vars from this role to the rest of the play
1521
when: appliances_mode != 'configure'
1622
# can't set vars: from a dict hence the workaround above
1723

ansible/roles/openondemand/tasks/pam_auth.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# https://osc.github.io/ood-documentation/latest/authentication/pam.html
22
---
3+
- name: Install Apache PAM module # Extracted from start of roles/openondemand/tasks/pam_auth.yml to ensure only installed during build
4+
yum:
5+
name: mod_authnz_pam
36

47
- name: Enable Apache PAM module
58
lineinfile:

ansible/roles/openondemand/tasks/vnc_compute.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
tags: install
4949
yum:
5050
name: '@Xfce'
51+
when: appliances_mode != 'configure' # dnf group/module installs aren't idempotent so only run during build
5152

5253
# - name: Ensure python3.9 installed
5354
# dnf:

0 commit comments

Comments
 (0)