Skip to content

Commit 2108ca4

Browse files
authored
test against 4.1 (#289)
Update to 4.1 defaults.
1 parent 3e4e305 commit 2108ca4

16 files changed

Lines changed: 100 additions & 16 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,23 @@ jobs:
2727
max-parallel: 4
2828
matrix:
2929
image:
30-
- 'centos/centos:stream8'
3130
- 'rockylinux:8'
3231
- 'rockylinux:9'
32+
- 'rockylinux/rockylinux:10'
3333
- 'almalinux:8'
3434
- 'almalinux:9'
35-
- 'ubuntu:20.04'
35+
- 'almalinux:10'
3636
- 'ubuntu:22.04'
3737
- 'ubuntu:24.04'
3838
scenario:
3939
- 'default'
4040
- 'upgrade'
41+
exclude:
42+
# 4.0 did not support el:10
43+
- scenario: upgrade
44+
image: 'rockylinux/rockylinux:10'
45+
- scenario: upgrade
46+
image: 'almalinux:10'
4147

4248
steps:
4349
- name: checkout

defaults/main/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ondemand_selinux_package: ondemand-selinux # behaviour as for ondemand_package
4949

5050
# needed for testing. no reason to change these in production.
5151
disable_htcacheclean: false
52-
nodejs_version: 20
52+
nodejs_version: 22
5353
ruby_version: 3.3
5454

5555
ood_base_apache_dir: "/var/www/ood"

molecule/default/prepare.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
- ca-certificates
1616
- systemd
1717
- git
18+
19+
- name: Install extra packages (EL10)
20+
ansible.builtin.package:
21+
name: "{{ item }}"
22+
state: latest
23+
loop:
24+
- gnupg2
25+
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '10'
1826

1927
- name: Create secondary group
2028
ansible.builtin.group:

molecule/default/vars/install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
disable_htcacheclean: true
22

3-
apt_repo_url: "https://apt.osc.edu/ondemand/staging/4.0/ondemand-release-web_4.0.0-{{ deb_distro }}_all.deb"
4-
rpm_repo_url: "https://yum.osc.edu/ondemand/staging/4.0/ondemand-release-web-4.0-1.{{ el_distro }}.noarch.rpm"
3+
apt_repo_url: "https://apt.osc.edu/ondemand/4.1/ondemand-release-web_4.1.0-{{ deb_distro }}_all.deb"
4+
rpm_repo_url: "https://yum.osc.edu/ondemand/4.1/ondemand-release-web-4.1-1.{{ el_distro }}.noarch.rpm"

molecule/upgrade/prepare.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,22 @@
1616
- systemd
1717
- git
1818

19+
- name: Install extra packages (EL10)
20+
ansible.builtin.package:
21+
name: "{{ item }}"
22+
state: latest
23+
loop:
24+
- gnupg2
25+
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '10'
26+
1927
- name: Install previous version
2028
hosts: all
2129

2230
pre_tasks:
2331
- name: Set dependency versions on el8
2432
set_fact:
25-
ruby_version: 3.1
26-
nodejs_version: 18
33+
ruby_version: 3.3
34+
nodejs_version: 20
2735
when: ansible_os_family == "RedHat" and ansible_distribution_major_version >= '8'
2836

2937
- name: Use default versions on el9

molecule/upgrade/vars/converge.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
ondemand_package: 'latest'
22

3-
# test against staging to catch any issues upgrading
4-
apt_repo_url: "https://apt.osc.edu/ondemand/staging/4.0/ondemand-release-web_4.0.0-{{ deb_distro }}_all.deb"
5-
rpm_repo_url: "https://yum.osc.edu/ondemand/staging/4.0/ondemand-release-web-4.0-1.{{ el_distro }}.noarch.rpm"
3+
apt_repo_url: "https://apt.osc.edu/ondemand/4.1/ondemand-release-web_4.1.0-{{ deb_distro }}_all.deb"
4+
rpm_repo_url: "https://yum.osc.edu/ondemand/4.1/ondemand-release-web-4.1-1.{{ el_distro }}.noarch.rpm"

molecule/upgrade/vars/prepare.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}3.1.13"
1+
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}4.0.8"
22
disable_htcacheclean: true
33

4-
# test against staging to catch any issues upgrading
5-
apt_repo_url: "https://apt.osc.edu/ondemand/staging/3.1/ondemand-release-web_3.1.2-{{ deb_distro }}_all.deb"
6-
rpm_repo_url: "https://yum.osc.edu/ondemand/staging/3.1/ondemand-release-web-3.1-1.{{ el_distro }}.noarch.rpm"
4+
apt_repo_url: "https://apt.osc.edu/ondemand/4.0/ondemand-release-web_4.0.0-{{ deb_distro }}_all.deb"
5+
rpm_repo_url: "https://yum.osc.edu/ondemand/4.0/ondemand-release-web-4.0-1.{{ el_distro }}.noarch.rpm"

molecule/upgrade/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
- name: Verify OOD version
5959
ansible.builtin.shell: |
6060
set -o pipefail
61-
grep -P '4.0.(\d)*' /opt/ood/VERSION
61+
grep -P '4.1.(\d)*' /opt/ood/VERSION
6262
args:
6363
executable: /bin/bash
6464
changed_when: false

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
src: "{{ apache_etc_dir }}/mods-available/ssl.load"
6666
dest: "{{ apache_etc_dir }}/mods-enabled/ssl.load"
6767
state: link
68-
when: ansible_os_family == "Debian" and ssl is defined
68+
when: ansible_os_family == "Debian" and (ssl is defined or ssl_proxy is defined)
6969

7070
- name: Enable Debian oidc mod
7171
ansible.builtin.file:

tasks/install-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '8'
5656
loop:
5757
- "{{ additional_rpm_installs }}"
58+
tags:
59+
# not sure why this is not idempotent all of the sudden, but it is in molecule tests
60+
- molecule-idempotence-notest
5861

5962
- name: Install additional packages
6063
ansible.builtin.package:

0 commit comments

Comments
 (0)