-
Notifications
You must be signed in to change notification settings - Fork 35
Refactor Pulp repo definitions and add more Pulp documentation #760
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 12 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
134b627
WIP: refactor repos definitions
sjpb 86f93ed
add more repos and cope with CRB/PowerTools oddness
sjpb a9e6959
add epel
sjpb 15579c3
use pulp_server as a group
sjpb 5c39a06
add epel default
sjpb 57784b7
wip: get pulp sync working
sjpb 2e3c4fd
Merge branch 'main' into refactor/regularise-pulp
wtripp180901 4aa9fee
fixed sync
wtripp180901 dd52e90
autodetect latest in adhoc script, refactored timestamps to allow gat…
wtripp180901 4854903
fixed distributions + ohpc repos
wtripp180901 c8635bb
updated timestamps script + bumped rocky 9 timestamps
wtripp180901 8f438b1
removed pulp_repo_name fields
wtripp180901 d463fed
updated docs, added gpg checks, simplified filters
wtripp180901 530ecf7
Added pulp systemd file + removed unused vars
wtripp180901 7a0eab3
added READMEs + updated variable names
wtripp180901 305a057
disabled gpg checks for dnf_repos
wtripp180901 1b4c867
typo
wtripp180901 767addd
fixed disable repos task
wtripp180901 8ad6869
bump images
wtripp180901 b5b3b39
remove dnf_repos extra index/key and make epel/openhpc special-cases …
sjpb 244a9ee
clarify pulp distro selection
sjpb 32278e7
fixup sync vars
sjpb a63fa1f
fixup grafana vars
sjpb 4580c2e
revert latest timestamp changes for extra key level
sjpb 4d412ec
Merge pull request #765 from stackhpc/dnf-repos-sjpb
wtripp180901 1405f3d
review suggestions
wtripp180901 dff68b4
updated README
wtripp180901 7253ad0
docs tweaks
wtripp180901 f5f2c0b
regularised group names
wtripp180901 ab2cfdf
updated operations guide for functionality requiring additional installs
wtripp180901 edb4e12
review changes from docs
wtripp180901 412baed
renamed timestamps.yml to dnf_repos_timestamps.yml
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
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 |
---|---|---|
@@ -1,54 +1,8 @@ | ||
dnf_repos_default: {} # see environments/common/inventory/group_vars/all/timestamps.yml | ||
dnf_repos_extra: {} | ||
dnf_repos_no_epel: {} | ||
dnf_repos_all: {} | ||
dnf_repos_default_epel: {} | ||
dnf_repos_pulp_content_url: "{{ appliances_pulp_url }}/pulp/content" | ||
dnf_repos_username: "{{ omit }}" | ||
dnf_repos_password: "{{ omit }}" | ||
|
||
dnf_repos_filenames: | ||
'8': | ||
baseos: 'Rocky-BaseOS' | ||
appstream: 'Rocky-AppStream' | ||
crb: 'Rocky-PowerTools' | ||
extras: 'Rocky-Extras' | ||
grafana: 'grafana' | ||
'9': | ||
baseos: 'rocky' | ||
appstream: 'rocky' | ||
crb: 'rocky' | ||
extras: 'rocky-extras' | ||
grafana: 'grafana' | ||
|
||
dnf_repos_version_filenames: "{{ dnf_repos_filenames[ansible_distribution_major_version] }}" | ||
|
||
# epel installed separately | ||
dnf_repos_default_repolist: | ||
- file: "{{ dnf_repos_version_filenames.baseos }}" | ||
name: baseos | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.baseos[ansible_distribution_version] | appliances_repo_to_subpath }}" | ||
- file: "{{ dnf_repos_version_filenames.appstream }}" | ||
name: appstream | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.appstream[ansible_distribution_version] | appliances_repo_to_subpath }}" | ||
- file: "{{ dnf_repos_version_filenames.crb }}" | ||
name: "{{ 'powertools' if ansible_distribution_major_version == '8' else 'crb' }}" | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.crb[ansible_distribution_version] | appliances_repo_to_subpath }}" | ||
- file: "{{ dnf_repos_version_filenames.extras }}" | ||
name: extras | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.extras[ansible_distribution_version] | appliances_repo_to_subpath }}" | ||
- file: ceph | ||
name: Ceph | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.ceph[ansible_distribution_major_version] | appliances_repo_to_subpath }}" | ||
- file: "{{ dnf_repos_version_filenames.grafana }}" | ||
name: grafana | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.grafana[ansible_distribution_major_version] | appliances_repo_to_subpath }}" | ||
|
||
dnf_repos_openhpc_repolist: | ||
- name: OpenHPC | ||
file: OpenHPC | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.openhpc_base[ansible_distribution_major_version] | appliances_repo_to_subpath }}" | ||
- name: OpenHPC-updates | ||
file: OpenHPC | ||
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.openhpc_updates[ansible_distribution_major_version] | appliances_repo_to_subpath }}" | ||
|
||
dnf_repos_extra_repolist: [] | ||
dnf_repos_repolist: "{{ dnf_repos_default_repolist + (dnf_repos_openhpc_repolist if (openhpc_install_type | default('ohpc')) == 'ohpc' else []) + dnf_repos_extra_repolist }}" | ||
|
||
dnf_repos_epel_baseurl: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.epel[ansible_distribution_major_version] | appliances_repo_to_subpath }}" | ||
dnf_repos_epel_description: "epel" |
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 |
---|---|---|
@@ -1,44 +1,30 @@ | ||
pulp_site_url: "{{ appliances_pulp_url }}" | ||
pulp_site_port: 8080 | ||
pulp_site_username: admin # shouldn't be changed | ||
pulp_site_password: "{{ vault_pulp_admin_password }}" | ||
pulp_site_password: "{{ vault_pulp_admin_password }}" #todo make more obvious this is different from the password needed for ark (pulp_site_upstream_password) | ||
pulp_site_upstream_content_url: https://ark.stackhpc.com/pulp/content | ||
pulp_site_default_upstream_suffix: "{{ pulp_site_target_arch }}/os" | ||
pulp_site_validate_certs: false | ||
pulp_site_install_dir: '/home/rocky/pulp' | ||
pulp_site_selinux_suffix: "{{ ':Z' if ansible_selinux.status == 'enabled' else '' }}" | ||
pulp_site_target_facts: "{{ hostvars[groups['pulp'][0]]['ansible_facts'] }}" | ||
pulp_site_target_distribution_version: "{{ pulp_site_target_facts['distribution_version'] }}" | ||
pulp_site_target_distribution_version_major: "{{ pulp_site_target_facts['distribution_major_version'] }}" | ||
|
||
pulp_site_rpm_info: | ||
- name: "baseos-{{ pulp_site_target_distribution_version }}-{{ appliances_pulp_repos.baseos[pulp_site_target_distribution_version].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.baseos[pulp_site_target_distribution_version] | appliances_repo_to_subpath }}" | ||
- name: "appstream-{{ pulp_site_target_distribution_version }}-{{ appliances_pulp_repos.appstream[pulp_site_target_distribution_version].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.appstream[pulp_site_target_distribution_version] | appliances_repo_to_subpath }}" | ||
- name: "crb-{{ pulp_site_target_distribution_version }}-{{ appliances_pulp_repos.crb[pulp_site_target_distribution_version].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.crb[pulp_site_target_distribution_version] | appliances_repo_to_subpath }}" | ||
- name: "extras-{{ pulp_site_target_distribution_version }}-{{ appliances_pulp_repos.extras[pulp_site_target_distribution_version].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.extras[pulp_site_target_distribution_version] | appliances_repo_to_subpath }}" | ||
- name: "epel-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.epel[pulp_site_target_distribution_version_major].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.epel[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}" | ||
- name: "ohpc-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.openhpc_base[pulp_site_target_distribution_version_major].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.openhpc_base[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}" | ||
- name: "ohpc-updates-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.openhpc_updates[pulp_site_target_distribution_version_major].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.openhpc_updates[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}" | ||
- name: "ceph-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.ceph[pulp_site_target_distribution_version_major].timestamp }}" | ||
subpath: "{{ appliances_pulp_repos.ceph[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}" | ||
- name: "grafana-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.grafana.timestamp[pulp_site_target_distribution_version_major].timestamp }} | ||
subpath: "{{ appliances_pulp_repos.grafana[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}" | ||
pulp_site_target_distribution_version: "{{ pulp_site_target_facts['distribution_version'] }}" # TODO: how to set automatically? | ||
sjpb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
pulp_site_rpm_repo_defaults: | ||
remote_username: "{{ pulp_site_upstream_username }}" | ||
remote_password: "{{ pulp_site_upstream_password }}" | ||
policy: on_demand | ||
state: present | ||
|
||
_pulp_site_rpm_info_all: "{{ pulp_site_rpm_info | map('combine', pulp_site_rpm_repo_defaults) }}" | ||
pulp_site_rpm_info: | | ||
{{ | ||
dnf_repos_all | | ||
select_repos(pulp_site_target_distribution_version) | ||
}} | ||
pulp_site_rpm_repos: | | ||
{{ | ||
pulp_site_rpm_info | | ||
to_rpm_repos(pulp_site_upstream_content_url, pulp_site_rpm_repo_defaults) | ||
}} | ||
pulp_site_rpm_repos: "{{ _pulp_site_rpm_info_all | to_rpm_repos(pulp_site_upstream_content_url) }}" | ||
pulp_site_rpm_publications: "{{ _pulp_site_rpm_info_all | to_rpm_pubs }}" | ||
pulp_site_rpm_distributions: "{{ _pulp_site_rpm_info_all | to_rpm_distros }}" | ||
pulp_site_rpm_publications: "{{ pulp_site_rpm_info | to_rpm_pubs }}" | ||
pulp_site_rpm_distributions: "{{ pulp_site_rpm_info | to_rpm_distros }}" |
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
Oops, something went wrong.
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.