File tree Expand file tree Collapse file tree 12 files changed +55
-40
lines changed
Expand file tree Collapse file tree 12 files changed +55
-40
lines changed Original file line number Diff line number Diff line change 2626 max-parallel : 4
2727 matrix :
2828 image :
29- - ' centos:8 '
29+ - ' centos/centos:stream8 '
3030 - ' rockylinux:8'
3131 - ' rockylinux:9'
3232 - ' almalinux:8'
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
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ apache_etc_dir: "/etc/{{ apache_service_name }}"
1717apache_conf_dir : " {{ apache_etc_dir }}/conf.d"
1818apache_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
2323rpm_repo_key : " https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand"
2424deb_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.
4242disable_htcacheclean : false
43- nodejs_version : 14
44- ruby_version : 3.0
43+ nodejs_version : 18
44+ ruby_version : 3.1
Original file line number Diff line number Diff line change @@ -12,27 +12,27 @@ lint: |
1212
1313platforms :
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
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ lint: |
1212
1313platforms :
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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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 "
22disable_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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -12,5 +12,7 @@ locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passen
1212
1313additional_rpm_installs :
1414 - lua-posix
15+ - ' @nodejs:{{ nodejs_version }}'
16+ - ' @ruby:{{ ruby_version }}'
1517
1618rpm_repo_key : https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand-SHA512
Original file line number Diff line number Diff line change @@ -12,5 +12,5 @@ locations_ini: "/opt/ood/ondemand/root/usr/share/ruby/vendor_ruby/phusion_passen
1212
1313additional_rpm_installs :
1414 - lua-posix
15- - " @ruby:{{ ruby_version }}"
16- - " @nodejs:{{ nodejs_version }}"
15+ - " @ruby:{{ ruby_version }}/common "
16+ - " @nodejs:{{ nodejs_version }}/common "
You can’t perform that action at this time.
0 commit comments