Skip to content

Commit c4723d4

Browse files
authored
update defaults for next version (#254)
Update defaults to prepare for next version. This installs from latest, so will need to be updated when we get real 4.0 packages built.
1 parent 3907e9c commit c4723d4

File tree

5 files changed

+15
-31
lines changed

5 files changed

+15
-31
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,8 @@ jobs:
4848
run: |
4949
python3 -m pip install -r molecule/requirements.txt
5050
ansible-galaxy collection install community.general
51-
sudo apt update && sudo apt install -y podman
51+
sudo apt update && sudo apt upgrade -y && sudo apt install -y podman
5252
53-
# we have to patch crun here because Ubuntu fails with the errors similar to the
54-
# github issue below.
55-
# https://github.com/containers/crun/issues/1308
56-
- name: patch crun
57-
run: |
58-
export CRUN_VER='1.14.3'
59-
mkdir -p "${HOME}/.local/bin"
60-
curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun"
61-
chmod +x "${HOME}/.local/bin/crun"
62-
63-
mkdir -p "${HOME}/.config/containers"
64-
cat << EOF > "${HOME}/.config/containers/containers.conf"
65-
[engine.runtimes]
66-
crun = [
67-
"${HOME}/.local/bin/crun",
68-
"/usr/bin/crun"
69-
]
70-
EOF
7153
- name: run tests
7254
run: molecule test --scenario-name=${{ matrix.scenario }}
7355
env:

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.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"
20+
rpm_repo_url: "https://yum.osc.edu/ondemand/latest/ondemand-release-web-latest-1-8.{{ el_distro }}.noarch.rpm"
21+
apt_repo_url: "https://apt.osc.edu/ondemand/latest/ondemand-release-web-latest_5-{{ 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"
@@ -42,7 +42,7 @@ ondemand_dex_package: ondemand-dex # behaviour as for ondemand_package
4242

4343
# needed for testing. no reason to change these in production.
4444
disable_htcacheclean: false
45-
nodejs_version: 18
46-
ruby_version: 3.1
45+
nodejs_version: 20
46+
ruby_version: 3.3
4747

4848
ood_base_apache_dir: "/var/www/ood"

molecule/upgrade/prepare.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
pre_tasks:
2323
- name: Set dependency versions on el8
2424
set_fact:
25-
ruby_version: 3.0
26-
nodejs_version: 14
27-
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '8'
25+
ruby_version: 3.1
26+
nodejs_version: 18
27+
when: ansible_os_family == "RedHat" and ansible_distribution_major_version >= '8'
2828

29-
- name: Use default versions on el8
29+
- name: Use default versions on el9
3030
set_fact:
3131
additional_rpm_installs:
3232
- lua-posix
33+
- "@ruby:{{ ruby_version }}"
34+
- "@nodejs:{{ nodejs_version }}"
3335
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == '9'
3436

3537
roles:

molecule/upgrade/vars/prepare.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}3.0.3"
1+
ondemand_package: "ondemand{% if ansible_os_family == 'RedHat' %}-{% else %}={% endif %}3.1.10"
22
disable_htcacheclean: true
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"
3+
apt_repo_url: "https://apt.osc.edu/ondemand/3.1/ondemand-release-web_3.1.2-{{ deb_distro }}_all.deb"
4+
rpm_repo_url: "https://yum.osc.edu/ondemand/3.1/ondemand-release-web-3.1-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 '3.1.(\d)*' /opt/ood/VERSION
61+
grep -P '4.0.(\d)*' /opt/ood/VERSION
6262
args:
6363
executable: /bin/bash
6464
changed_when: false

0 commit comments

Comments
 (0)