Skip to content

switch from yum to dnf #20

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 1 commit into from
Dec 6, 2024
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 tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- yum

- { import_tasks: keys.yml, tags: ['cvmfs', 'keys'] }
- { import_tasks: yum.yml, tags: ['cvmfs', 'yum'] }
- { import_tasks: repos.yml, tags: ['cvmfs', 'repos'] }
- { import_tasks: users.yml, tags: ['cvmfs', 'users'] }
- { import_tasks: storage.yml, tags: ['cvmfs', 'storage'], when: cvmfs_client_configure_storage | bool }
- { import_tasks: packages.yml, tags: ['cvmfs', 'packages'] }
Expand Down
10 changes: 5 additions & 5 deletions tasks/yum.yml → tasks/repos.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---

# Target hosts will need internet access anyway to install the actual packages via yum, so we might as well
# install the yum config from the internet as well - if a version is not already installed.
# Target hosts will need internet access anyway to install the actual packages, so we might as well
# install the config from the internet as well - if a version is not already installed.
# There is no benefit to abstracting this with the yum_repository module, and doing so would break idempotence
# because these packages update themselves via their own yum repositories.

- name: Install CernVM yum repository
yum:
ansible.builtin.dnf:
name: https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
state: present
validate_certs: yes
when: ansible_facts.packages['cvmfs-release'] is not defined

- name: Install Compute Canada yum repository
yum:
ansible.builtin.dnf:
name: https://package.computecanada.ca/yum/cc-cvmfs-public/prod/RPM/computecanada-release-latest.noarch.rpm
state: present
validate_certs: yes
Expand All @@ -22,7 +22,7 @@
- ansible_facts.packages['computecanada-release'] is not defined

- name: Install other prerequisite packages
yum:
ansible.builtin.dnf:
name: [ 'lvm2' ]
when: cvmfs_client_configure_storage | bool

Loading