Skip to content

Commit c694272

Browse files
authored
update to 3.1 (#228)
This does a couple things: * primarily it upgrades to 3.1, installing the newer package. A lot of small updates have been made to accommodate this. Mostly testing updates, but most EL distros now specifies the node and ruby version in their var files. * This fixes the test suite as GH actions seems to have updated.
1 parent 75a91fe commit c694272

File tree

12 files changed

+55
-40
lines changed

12 files changed

+55
-40
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
max-parallel: 4
2727
matrix:
2828
image:
29-
- 'centos:8'
29+
- 'centos/centos:stream8'
3030
- 'rockylinux:8'
3131
- 'rockylinux:9'
3232
- 'almalinux:8'
@@ -36,16 +36,6 @@ jobs:
3636
scenario:
3737
- 'default'
3838
- 'upgrade'
39-
exclude:
40-
# 2.0 did not support el:9 and ubuntu:22
41-
- scenario: upgrade
42-
image: 'rockylinux:9'
43-
- scenario: upgrade
44-
image: 'ubuntu:22.04'
45-
- scenario: upgrade
46-
image: 'almalinux:8'
47-
- scenario: upgrade
48-
image: 'almalinux:9'
4939

5040
steps:
5141
- name: checkout

defaults/main/install.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ apache_etc_dir: "/etc/{{ apache_service_name }}"
1717
apache_conf_dir: "{{ apache_etc_dir }}/conf.d"
1818
apache_log_dir: "/var/log/{{ apache_service_name }}"
1919

20-
rpm_repo_url: "https://yum.osc.edu/ondemand/3.0/ondemand-release-web-3.0-1.noarch.rpm"
21-
apt_repo_url: "https://apt.osc.edu/ondemand/3.0/ondemand-release-web_3.0.0_all.deb"
20+
rpm_repo_url: "https://yum.osc.edu/ondemand/3.1/ondemand-release-web-3.1-1.{{ el_distro }}.noarch.rpm"
21+
apt_repo_url: "https://apt.osc.edu/ondemand/3.1/ondemand-release-web_3.1.1-{{ deb_distro }}_all.deb"
2222

2323
rpm_repo_key: "https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand"
2424
deb_repo_key: "https://apt.osc.edu/ondemand/DEB-GPG-KEY-ondemand"
@@ -40,5 +40,5 @@ ondemand_dex_package: ondemand-dex # behaviour as for ondemand_package
4040

4141
# needed for testing. no reason to change these in production.
4242
disable_htcacheclean: false
43-
nodejs_version: 14
44-
ruby_version: 3.0
43+
nodejs_version: 18
44+
ruby_version: 3.1

molecule/default/molecule.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ lint: |
1212
1313
platforms:
1414
- name: default
15-
image: ${IMAGE:-"centos:7"}
15+
image: ${IMAGE:-"rockylinux:8"}
1616
command: /sbin/init
1717
tmpfs:
18-
- /run
19-
- /tmp
18+
"/run": "rw"
19+
"/tmp": "rw"
2020
volumes:
2121
- /sys/fs/cgroup:/sys/fs/cgroup:ro
2222
- name: custom
23-
image: ${IMAGE:-"centos:7"}
23+
image: ${IMAGE:-"rockylinux:8"}
2424
command: /sbin/init
2525
tmpfs:
26-
- /run
27-
- /tmp
26+
"/run": "rw"
27+
"/tmp": "rw"
2828
volumes:
2929
- /sys/fs/cgroup:/sys/fs/cgroup:ro
3030
- name: oidc
31-
image: ${IMAGE:-"centos:7"}
31+
image: ${IMAGE:-"rockylinux:8"}
3232
command: /sbin/init
3333
tmpfs:
34-
- /run
35-
- /tmp
34+
"/run": "rw"
35+
"/tmp": "rw"
3636
volumes:
3737
- /sys/fs/cgroup:/sys/fs/cgroup:ro
3838

molecule/upgrade/molecule.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ lint: |
1212
1313
platforms:
1414
- name: default
15-
image: ${IMAGE:-"centos:7"}
15+
image: ${IMAGE:-"rockylinux:8"}
1616
command: /sbin/init
1717
tmpfs:
18-
- /run
19-
- /tmp
18+
"/run": "rw"
19+
"/tmp": "rw"
2020
volumes:
2121
- /sys/fs/cgroup:/sys/fs/cgroup:ro
2222

molecule/upgrade/prepare.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@
1818

1919
- name: Install previous version
2020
hosts: all
21+
22+
pre_tasks:
23+
- name: Set dependency versions on el8
24+
set_fact:
25+
ruby_version: 3.0
26+
nodejs_version: 14
27+
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '8'
28+
29+
- name: Use default versions on el8
30+
set_fact:
31+
additional_rpm_installs:
32+
- lua-posix
33+
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '9'
34+
2135
roles:
2236
- role: ood-ansible
2337
vars_files:

molecule/upgrade/vars/prepare.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}2.0.28"
1+
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}3.0.3"
22
disable_htcacheclean: true
3-
nodejs_version: 12
4-
ruby_version: 2.7
5-
apt_repo_url: "https://apt.osc.edu/ondemand/2.0/ondemand-release-web_2.0.0_all.deb"
6-
rpm_repo_url: "https://yum.osc.edu/ondemand/2.0/ondemand-release-web-2.0-1.noarch.rpm"
3+
apt_repo_url: "https://apt.osc.edu/ondemand/3.0/ondemand-release-web_3.0.0_all.deb"
4+
rpm_repo_url: "https://yum.osc.edu/ondemand/3.0/ondemand-release-web-3.0-1.noarch.rpm"

molecule/upgrade/verify.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@
5454
- name: Include verity default tasks
5555
ansible.builtin.include_tasks: tasks/verify_default.yml
5656
when: inventory_hostname == "default"
57-
58-
- name: Verify node version
57+
58+
- name: Verify OOD version
5959
ansible.builtin.shell: |
6060
set -o pipefail
61-
if [ -f /opt/ood/ondemand/enable ]; then
62-
source /opt/ood/ondemand/enable
63-
fi
64-
node --version | grep v14
61+
grep -P '3.1.(\d)*' /opt/ood/VERSION
6562
args:
6663
executable: /bin/bash
6764
changed_when: false

tasks/install-package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
- name: Set el_distro when OS is RHEL
2+
set_fact:
3+
el_distro: "el{{ ansible_distribution_major_version }}"
4+
when: ansible_os_family == "RedHat"
5+
6+
- name: Set deb_distro when OS is Debian
7+
set_fact:
8+
deb_distro: "{{ ansible_distribution_release }}"
9+
when: ansible_os_family == "Debian"
10+
111
- name: Install the rpm repo's key
212
ansible.builtin.rpm_key:
313
state: present

vars/AlmaLinux/9.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passen
1212

1313
additional_rpm_installs:
1414
- lua-posix
15+
- '@nodejs:{{ nodejs_version }}'
16+
- '@ruby:{{ ruby_version }}'
1517

1618
rpm_repo_key: https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand-SHA512

vars/CentOS/8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passen
1212

1313
additional_rpm_installs:
1414
- lua-posix
15-
- "@ruby:{{ ruby_version }}"
16-
- "@nodejs:{{ nodejs_version }}"
15+
- "@ruby:{{ ruby_version }}/common"
16+
- "@nodejs:{{ nodejs_version }}/common"

0 commit comments

Comments
 (0)