Skip to content

Fix RL8.6 and EPEL repo changes #13

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 6 commits into from
Jan 10, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/arcus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
id: image_build
run: |
. venv/bin/activate
PACKER_LOG=1 packer build --on-error=ask -var-file=arcus.builder.pkrvars.hcl openstack.pkr.hcl
PACKER_LOG=1 packer build --on-error=ask openstack.pkr.hcl
env:
OS_CLOUD: openstack

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Current manual steps, assuming a Rocky Linux 8.5 host on Arcus:
1. Clone the repo
1. Install environment: `./setup.sh`
1. Activate venv if necessary: `. venv/bin/activate`
1. Build image: `PACKER_LOG=1 packer build --on-error=ask -var-file=arcus.builder.pkrvars.hcl openstack.pkr.hcl`
1. Build image: `PACKER_LOG=1 packer build --on-error=ask openstack.pkr.hcl`

# Usage of Images

Expand Down
1 change: 0 additions & 1 deletion arcus.builder.pkrvars.hcl

This file was deleted.

2 changes: 1 addition & 1 deletion roles/builder/defaults/main/cloudalchemy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ node_exporter_version: 1.1.2
_node_exporter_binary_install_dir: "/usr/local/bin"

# https://github.com/cloudalchemy/ansible-grafana/blob/master/defaults/main.yml
grafana_version: 9.0.3
grafana_version: '8.5.9'

# https://github.com/cloudalchemy/ansible-grafana/blob/master/vars/redhat.yml
grafana_package: "grafana{{ (grafana_version != 'latest') | ternary('-' ~ grafana_version, '') }}"
5 changes: 3 additions & 2 deletions roles/builder/defaults/main/dnf_packages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
releasever: '8.6'

rpm_keys:
- https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand # https://github.com/OSC/ood-ansible/blob/master/defaults/main/install.yml: rpm_repo_key

Expand All @@ -15,6 +13,9 @@ dnf_release_packages: # list of ansible.builtin.dnf args for packages to install
disable_gpg_check: yes
- name: https://yum.osc.edu/ondemand/2.0/ondemand-release-web-2.0-1.noarch.rpm # https://github.com/OSC/ood-ansible/blob/master/defaults/main/install.yml:rpm_repo_url
disable_gpg_check: yes
# workaround https://github.com/openhpc/ohpc/issues/1644:
- name: https://github.com/apptainer/apptainer/releases/download/v1.1.3/apptainer-1.1.3-1.x86_64.rpm
disable_gpg_check: yes

dnf_repofiles_no_minor_releasever: # list of repofiles which can't cope with an X.Y releasever
- /etc/yum.repos.d/ondemand-web.repo
Expand Down
8 changes: 0 additions & 8 deletions roles/builder/tasks/dnf_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
dnf: "{{ item }}"
loop: "{{ dnf_release_packages }}"

- name: Remove minor releasever from repofiles
ansible.builtin.replace:
path: "{{ item }}"
regexp: '\$releasever'
replace: "{{ releasever | split('.') | first }}"
when: "'.' in releasever"
loop: "{{ dnf_repofiles_no_minor_releasever }}"

- name: Install latest dnf packages
dnf:
name: "{{ dnf_latest_packages }}"
Expand Down
5 changes: 0 additions & 5 deletions roles/builder/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
policy: "{{ selinux_policy }}"
register: sestatus

- name: Set releasever
ansible.builtin.copy:
dest: /etc/yum/vars/releasever
content: "{{ releasever }}"

- name: Upgrade base image packages
dnf:
name: '*'
Expand Down