Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Set pulp_pkg_repo by default
Browse files Browse the repository at this point in the history
Fixes: #816
  • Loading branch information
mikedep333 committed Dec 17, 2021
1 parent 2036abf commit e9726ac
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGES/816.feature
@@ -0,0 +1 @@
Set `pulp_pkg_repo` by default. Users can now install from packages merely by setting `pulp_install_source=packages`.
1 change: 0 additions & 1 deletion molecule/packages-dynamic/group_vars/all
Expand Up @@ -8,7 +8,6 @@ pulp_install_plugins:
pulp_settings:
secret_key: secret
content_origin: "https://{{ ansible_fqdn }}"
pulp_pkg_repo: "https://yum.theforeman.org/pulpcore/3.16/el{{ ansible_distribution_major_version }}/$basearch/"
# Setting this not because it should have any effect, but to test that it
# doesn't:
pulp_pkg_upgrade_all: true
Expand Down
1 change: 0 additions & 1 deletion molecule/packages-static/group_vars/all
Expand Up @@ -10,4 +10,3 @@ pulp_install_plugins:
pulp_settings:
secret_key: secret
content_origin: "https://{{ ansible_fqdn }}"
pulp_pkg_repo: "https://yum.theforeman.org/pulpcore/3.16/el{{ ansible_distribution_major_version }}/$basearch/"
1 change: 0 additions & 1 deletion molecule/packages-upgrade/group_vars/all
Expand Up @@ -8,5 +8,4 @@ pulp_install_plugins:
pulp_settings:
secret_key: secret
content_origin: "https://{{ ansible_fqdn }}"
pulp_pkg_repo: "https://yum.theforeman.org/pulpcore/3.16/el{{ ansible_distribution_major_version }}/$basearch/"
pulp_pkg_upgrade_all: true
24 changes: 20 additions & 4 deletions roles/pulp_common/README.md
Expand Up @@ -134,7 +134,22 @@ RPM packages instead if this variable is set. Other distro packaging formats may
(RPM) "packages".
Defaults to "pip".

If it is set to "packages", the following variables are used, or behave *differently* from above:
If it is set to "packages", the installer is in *packges mode*, which has the following **limitations**:

* The packages are only built for CentOS/RHEL 7 and CentOS/RHEL 8.
* Not all plugins are available from the default repo. To determine which plugins are available,
follow [this link](https://yum.theforeman.org/pulpcore/), browse to the repo for your
Pulp version and distribution, and search for "pulp-".
* The default repo (from yum.theforeman.org, see `pulp_pkg_repo`) is not tested for every possible
pulpcore usage, and is thus not officially supported by the Foreman project.
* pulp_installer may install/upgrade to an older minor branch of pulpcore.
E.g., if pulp_installer is version 3.9.z, it may install Pulp 3.8 instead. See `pulp_pkg_repo`.
* The version of Pulp installed/upgraded to may be changed to the current minor branch during any
pulp_installer micro release.
E.g., pulp_installer 3.9.0 may install/upgrade to Pulp 3.8, while
pulp_installer 3.9.1 may install/upgrade to Pulp 3.9.

Furthermore, the following variables are used, or behave *differently* from above:

* `pulp_install_plugins`: **Required** A nested dictionary of plugins to install & their installation options.
* *Dictionary Key*: **Required**. The plugin name.
Expand All @@ -159,9 +174,10 @@ If it is set to "packages", the following variables are used, or behave *differe
appended to in order to install "pulpcore" and the plugins. Defaults to "python3-".
* `pulp_pkg_pulpcore_name`: The entire name of the Linux distro (RPM) package for pulpcore.
Defaults to: "python3-pulpcore"
* `pulp_pkg_repo`: yum/dnf package repo to add to the system before installing Pulp
Consists simply of the URL to the repo. Defaults to nothing. Does not support any other repo
type yet.
* `pulp_pkg_repo`: yum/dnf package repo to add to the system to install Pulp from.
Consists simply of the URL to the repo. Does not support any other repo type yet.
Defaults to either the corresponding minor branch (3.y) repo from `yum.theforeman.org`, or an older
minor branch. See the **limitations** above.
* `pulp_pkg_repo_gpgcheck`: Whether the package signatures should be checked or not. Defaults to `True`.
* `pulp_pkg_undeclared_deps`: Additional Linux distro (RPM) packages to install before installing pulpcore.
See `defaults/main.yml` for default values.
Expand Down
2 changes: 1 addition & 1 deletion roles/pulp_common/defaults/main.yml
Expand Up @@ -44,7 +44,7 @@ epel_release_packages:
pulp_irregularly_named_plugins:
- galaxy-ng
pulp_pkg_pulpcore_name: "{{ pulp_pkg_name_prefix }}pulpcore"
pulp_pkg_repo:
pulp_pkg_repo: "https://yum.theforeman.org/pulpcore/3.16/el{{ ansible_distribution_major_version }}/$basearch/"
pulp_pkg_repo_gpgcheck: True
pulp_pkg_undeclared_deps:
- "{{ pulp_pkg_name_prefix }}psycopg2"
Expand Down

0 comments on commit e9726ac

Please sign in to comment.