Skip to content
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

Yum local #598

Merged
merged 14 commits into from
Jul 18, 2022
Merged

Yum local #598

merged 14 commits into from
Jul 18, 2022

Conversation

scimerman
Copy link
Contributor

  • The local_yum_repository variable (inside static_inventories/) defines if the local yum repository should be created on the machine or not.
  • Role creates a local yum repository, within lyr_dir_path directory (default path is /var/local/repo/).
  • It is working with the other repository systems (Pulp, Spacewalk, default system repositories), but its priority is above all of them - that means packages will be first fetch from local repository and if not found, then they will be searched on others
  • Setting the local_yum_repository to false will remove the repository file from the /etc/yum.repos.d/ folder on the machine, but will keep the repository's folder intact.
  • The role has been added to the single_group_playbooks/cluster_part1.yml:
    - {role: yum_local, when: local_yum_repository == 'true' }
  • After the user manually uploads the .rpm's into the folder on the machine, it also needs to execute createrepo /path/to/repo/folder in order for the .rpms to appear on yum [search|install} commands

Copy link
Contributor

@pneerincx pneerincx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor phrasing/typo comments. Great work!

Co-authored-by: Pieter Neerincx <pieter.neerincx@gmail.com>
@scimerman scimerman requested a review from pneerincx July 18, 2022 08:16
Copy link
Contributor

@pneerincx pneerincx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@pneerincx pneerincx merged commit 12d483a into rug-cit-hpc:develop Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants