-
Notifications
You must be signed in to change notification settings - Fork 37
Use rocky 9.4 release train snapshots for builds #486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
40d9e1f
replaces system repos with ark repos during ci
wtripp180901 9ef7d69
now uses lookup instead of packer args
wtripp180901 a6e1243
only applies to RL9 for now
wtripp180901 6faf919
refactored ark role, disabled repos at end of build and modified site…
wtripp180901 0bc473c
fixed ood install with disbaled repos + fixed ark CRB typo
wtripp180901 364ec79
fixed eessi install and slurm not loading appliances_mode
wtripp180901 b0558b9
variables renames + more ansible facts in dnf_repos
wtripp180901 3131bd6
bump images
wtripp180901 1be9c6b
added review comment
wtripp180901 b7670e9
moved config into builder and .stackhpc
wtripp180901 3de36cf
pull
wtripp180901 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,5 @@ roles/* | |
!roles/k9s/** | ||
!roles/lustre/ | ||
!roles/lustre/** | ||
!roles/release_train/ | ||
!roles/release_train/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
release_train_url_prefix: https://ark.stackhpc.com/pulp/content/rocky/9.4 | ||
release_train_url_suffix: "x86_64/os/{{ release_train_timestamp }}/" | ||
# most stable from https://github.com/stackhpc/stackhpc-kayobe-config/blob/stackhpc/2024.1/etc/kayobe/pulp-repo-versions.yml | ||
# note that some timestamps can't be used because not all repos have snapshots for them | ||
release_train_timestamp: 20240816T002610 | ||
release_train_auth: | | ||
username = slurm-app-ci | ||
password = {{ lookup('ansible.builtin.env', 'ARK_PASSWORD') }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
|
||
- name: Check for backup folder exists | ||
stat: | ||
path: /etc/yum.repos.d.backup | ||
register: _stat_yum_backup_file | ||
|
||
- name: Fail if backup folder doesn't exist | ||
assert: | ||
that: _stat_yum_backup_file.stat.exists | ||
|
||
- name: Remove ark repos | ||
ansible.builtin.file: | ||
state: absent | ||
path: /etc/yum.repos.d | ||
|
||
- name: Restore backup repos | ||
ansible.builtin.shell: | ||
cmd: mv /etc/yum.repos.d.backup /etc/yum.repos.d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
|
||
- name: Check for existing backup folder | ||
stat: | ||
path: /etc/yum.repos.d.backup | ||
register: _stat_yum_backup_file | ||
|
||
- name: Backup existing package repos | ||
ansible.builtin.copy: | ||
remote_src: true | ||
src: /etc/yum.repos.d/ | ||
dest: /etc/yum.repos.d.backup | ||
when: not _stat_yum_backup_file.stat.exists | ||
|
||
- name: Replace package repos with release train repos | ||
no_log: true | ||
ansible.builtin.template: | ||
src: "{{ item }}.j2" | ||
dest: /etc/yum.repos.d/{{ item }} | ||
loop: | ||
- rocky-extras.repo | ||
- rocky.repo |
65 changes: 65 additions & 0 deletions
65
ansible/roles/release_train/templates/rocky-extras.repo.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# rocky-extras.repo | ||
# | ||
# The mirrorlist system uses the connecting IP address of the client and the | ||
# update status of each mirror to pick current mirrors that are geographically | ||
# close to the client. You should use this for Rocky updates unless you are | ||
# manually picking other mirrors. | ||
# | ||
# If the mirrorlist does not work for you, you can try the commented out | ||
# baseurl line instead. | ||
|
||
[extras] | ||
name=Rocky Linux $releasever - Extras | ||
baseurl={{ release_train_url_prefix }}/extras/{{ release_train_url_suffix }} | ||
gpgcheck=1 | ||
enabled=1 | ||
countme=1 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
{{ release_train_auth }} | ||
sjpb marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
[extras-debuginfo] | ||
name=Rocky Linux $releasever - Extras Debug | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever-debug$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/extras/$basearch/debug/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[extras-source] | ||
name=Rocky Linux $releasever - Extras Source | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever-source$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/extras/source/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[plus] | ||
name=Rocky Linux $releasever - Plus | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=plus-$releasever$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/plus/$basearch/os/ | ||
gpgcheck=1 | ||
enabled=0 | ||
countme=1 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[plus-debuginfo] | ||
name=Rocky Linux $releasever - Plus - Debug | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=plus-$releasever-debug$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/plus/$basearch/debug/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[plus-source] | ||
name=Rocky Linux $releasever - Plus - Source | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=plus-$releasever-source$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/plus/source/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# rocky.repo | ||
# | ||
# The mirrorlist system uses the connecting IP address of the client and the | ||
# update status of each mirror to pick current mirrors that are geographically | ||
# close to the client. You should use this for Rocky updates unless you are | ||
# manually picking other mirrors. | ||
# | ||
# If the mirrorlist does not work for you, you can try the commented out | ||
# baseurl line instead. | ||
|
||
[baseos] | ||
name=Rocky Linux $releasever - BaseOS | ||
baseurl={{ release_train_url_prefix }}/BaseOS/{{ release_train_url_suffix }} | ||
gpgcheck=1 | ||
enabled=1 | ||
countme=1 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
{{ release_train_auth }} | ||
|
||
[baseos-debuginfo] | ||
name=Rocky Linux $releasever - BaseOS - Debug | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever-debug$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/BaseOS/$basearch/debug/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[baseos-source] | ||
name=Rocky Linux $releasever - BaseOS - Source | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=BaseOS-$releasever-source$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/BaseOS/source/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[appstream] | ||
name=Rocky Linux $releasever - AppStream | ||
baseurl={{ release_train_url_prefix }}/AppStream/{{ release_train_url_suffix }} | ||
gpgcheck=1 | ||
enabled=1 | ||
countme=1 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
{{ release_train_auth }} | ||
|
||
[appstream-debuginfo] | ||
name=Rocky Linux $releasever - AppStream - Debug | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever-debug$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/AppStream/$basearch/debug/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[appstream-source] | ||
name=Rocky Linux $releasever - AppStream - Source | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=AppStream-$releasever-source$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/AppStream/source/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[crb] | ||
name=Rocky Linux $releasever - CRB | ||
baseurl={{ release_train_url_prefix }}/CRB/{{ release_train_url_suffix }} | ||
gpgcheck=1 | ||
enabled=0 | ||
countme=1 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
{{ release_train_auth }} | ||
|
||
[crb-debuginfo] | ||
name=Rocky Linux $releasever - CRB - Debug | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=CRB-$releasever-debug$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/CRB/$basearch/debug/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 | ||
|
||
[crb-source] | ||
name=Rocky Linux $releasever - CRB - Source | ||
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=CRB-$releasever-source$rltype | ||
#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/CRB/source/tree/ | ||
gpgcheck=1 | ||
enabled=0 | ||
metadata_expire=6h | ||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.