Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,23 @@ jobs:
max-parallel: 4
matrix:
image:
- 'centos/centos:stream8'
- 'rockylinux:8'
- 'rockylinux:9'
- 'rockylinux/rockylinux:10'
- 'almalinux:8'
- 'almalinux:9'
- 'ubuntu:20.04'
- 'almalinux:10'
- 'ubuntu:22.04'
- 'ubuntu:24.04'
scenario:
- 'default'
- 'upgrade'
exclude:
# 4.0 did not support el:10
- scenario: upgrade
image: 'rockylinux/rockylinux:10'
- scenario: upgrade
image: 'almalinux:10'

steps:
- name: checkout
Expand Down
2 changes: 1 addition & 1 deletion defaults/main/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ ondemand_selinux_package: ondemand-selinux # behaviour as for ondemand_package

# needed for testing. no reason to change these in production.
disable_htcacheclean: false
nodejs_version: 20
nodejs_version: 22
ruby_version: 3.3

ood_base_apache_dir: "/var/www/ood"
8 changes: 8 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
- ca-certificates
- systemd
- git

- name: Install extra packages (EL10)
ansible.builtin.package:
name: "{{ item }}"
state: latest
loop:
- gnupg2
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '10'

- name: Create secondary group
ansible.builtin.group:
Expand Down
4 changes: 2 additions & 2 deletions molecule/default/vars/install.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
disable_htcacheclean: true

apt_repo_url: "https://apt.osc.edu/ondemand/staging/4.0/ondemand-release-web_4.0.0-{{ deb_distro }}_all.deb"
rpm_repo_url: "https://yum.osc.edu/ondemand/staging/4.0/ondemand-release-web-4.0-1.{{ el_distro }}.noarch.rpm"
apt_repo_url: "https://apt.osc.edu/ondemand/4.1/ondemand-release-web_4.1.0-{{ deb_distro }}_all.deb"
rpm_repo_url: "https://yum.osc.edu/ondemand/4.1/ondemand-release-web-4.1-1.{{ el_distro }}.noarch.rpm"
12 changes: 10 additions & 2 deletions molecule/upgrade/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,22 @@
- systemd
- git

- name: Install extra packages (EL10)
ansible.builtin.package:
name: "{{ item }}"
state: latest
loop:
- gnupg2
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '10'

- name: Install previous version
hosts: all

pre_tasks:
- name: Set dependency versions on el8
set_fact:
ruby_version: 3.1
nodejs_version: 18
ruby_version: 3.3
nodejs_version: 20
when: ansible_os_family == "RedHat" and ansible_distribution_major_version >= '8'

- name: Use default versions on el9
Expand Down
5 changes: 2 additions & 3 deletions molecule/upgrade/vars/converge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ondemand_package: 'latest'

# test against staging to catch any issues upgrading
apt_repo_url: "https://apt.osc.edu/ondemand/staging/4.0/ondemand-release-web_4.0.0-{{ deb_distro }}_all.deb"
rpm_repo_url: "https://yum.osc.edu/ondemand/staging/4.0/ondemand-release-web-4.0-1.{{ el_distro }}.noarch.rpm"
apt_repo_url: "https://apt.osc.edu/ondemand/4.1/ondemand-release-web_4.1.0-{{ deb_distro }}_all.deb"
rpm_repo_url: "https://yum.osc.edu/ondemand/4.1/ondemand-release-web-4.1-1.{{ el_distro }}.noarch.rpm"
7 changes: 3 additions & 4 deletions molecule/upgrade/vars/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}3.1.13"
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}4.0.8"
disable_htcacheclean: true

# test against staging to catch any issues upgrading
apt_repo_url: "https://apt.osc.edu/ondemand/staging/3.1/ondemand-release-web_3.1.2-{{ deb_distro }}_all.deb"
rpm_repo_url: "https://yum.osc.edu/ondemand/staging/3.1/ondemand-release-web-3.1-1.{{ el_distro }}.noarch.rpm"
apt_repo_url: "https://apt.osc.edu/ondemand/4.0/ondemand-release-web_4.0.0-{{ deb_distro }}_all.deb"
rpm_repo_url: "https://yum.osc.edu/ondemand/4.0/ondemand-release-web-4.0-1.{{ el_distro }}.noarch.rpm"
2 changes: 1 addition & 1 deletion molecule/upgrade/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
- name: Verify OOD version
ansible.builtin.shell: |
set -o pipefail
grep -P '4.0.(\d)*' /opt/ood/VERSION
grep -P '4.1.(\d)*' /opt/ood/VERSION
args:
executable: /bin/bash
changed_when: false
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
src: "{{ apache_etc_dir }}/mods-available/ssl.load"
dest: "{{ apache_etc_dir }}/mods-enabled/ssl.load"
state: link
when: ansible_os_family == "Debian" and ssl is defined
when: ansible_os_family == "Debian" and (ssl is defined or ssl_proxy is defined)

- name: Enable Debian oidc mod
ansible.builtin.file:
Expand Down
3 changes: 3 additions & 0 deletions tasks/install-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '8'
loop:
- "{{ additional_rpm_installs }}"
tags:
# not sure why this is not idempotent all of the sudden, but it is in molecule tests
- molecule-idempotence-notest

- name: Install additional packages
ansible.builtin.package:
Expand Down
18 changes: 18 additions & 0 deletions vars/AlmaLinux/10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
os_dependencies:
- redhat-rpm-config
- libnsl

apache_oidc_mod_package: mod_auth_openidc

nginx_root: "/opt/rh/ondemand/root"
nginx_bin: "{{ nginx_root }}/sbin/nginx"
nginx_mime_types: "{{ nginx_root }}/etc/nginx/mime.types"
locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini"

additional_rpm_installs:
- lua-posix
- 'nodejs'
- 'ruby'

rpm_repo_key: https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand-SHA512
2 changes: 2 additions & 0 deletions vars/AlmaLinux/8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ nginx_bin: "{{ nginx_root }}/sbin/nginx"
nginx_mime_types: "{{ nginx_root }}/etc/nginx/mime.types"
locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini"

nodejs_version: '22/common'

additional_rpm_installs:
- lua-posix
- "@ruby:{{ ruby_version }}"
Expand Down
19 changes: 19 additions & 0 deletions vars/RedHat/10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
os_dependencies:
- redhat-rpm-config
- libnsl
- lua-posix

apache_oidc_mod_package: mod_auth_openidc

nginx_root: "/opt/rh/ondemand/root"
nginx_bin: "{{ nginx_root }}/sbin/nginx"
nginx_mime_types: "{{ nginx_root }}/etc/nginx/mime.types"
locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini"

additional_rpm_installs:
- lua-posix
- 'nodejs'
- 'ruby'

rpm_repo_key: https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand-SHA512
2 changes: 2 additions & 0 deletions vars/RedHat/8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ nginx_bin: "{{ nginx_root }}/sbin/nginx"
nginx_mime_types: "{{ nginx_root }}/etc/nginx/mime.types"
locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini"

nodejs_version: '22/common'

additional_rpm_installs:
- lua-posix
- "@ruby:{{ ruby_version }}"
Expand Down
18 changes: 18 additions & 0 deletions vars/Rocky/10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
os_dependencies:
- redhat-rpm-config
- libnsl

apache_oidc_mod_package: mod_auth_openidc

nginx_root: "/opt/rh/ondemand/root"
nginx_bin: "{{ nginx_root }}/sbin/nginx"
nginx_mime_types: "{{ nginx_root }}/etc/nginx/mime.types"
locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini"

additional_rpm_installs:
- lua-posix
- 'nodejs'
- 'ruby'

rpm_repo_key: https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand-SHA512
2 changes: 2 additions & 0 deletions vars/Rocky/8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ nginx_bin: "{{ nginx_root }}/sbin/nginx"
nginx_mime_types: "{{ nginx_root }}/etc/nginx/mime.types"
locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passenger/locations.ini"

nodejs_version: '22/common'

additional_rpm_installs:
- lua-posix
- "@ruby:{{ ruby_version }}"
Expand Down