This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to specify a minor version for
pulpcore_version
`pulpcore_version` now defaults to a specific minor release of pulpcore (e.g.: 3.15) which the installer is going to install. When the installer is run for the first time, the latest patch release of pulpcore (e.g.: 3.15.2) is installed. If the installer is run again with the same value of `pulpcore_version`, the pulpcore package is not updated. In order to update to the latest patch release within a minor stream, the user must set `pulpcore_update` to true. If the user sets the `pulpcore_version` to a different minor release of pulpcore (e.g.: 3.16), the installer will attempt to upgrade pulpcore to the latest patch release (e.g.: 3.16.1) for that minor release of pulpcore. If the user sets the `pulpcore_version` to a specific patch release, the installer will attempt to install that specific release of pulpcore. If the installed plugins are not compatible with the requested release of pulpcore, the installer will not make any changes. The `version` of a plugin can now also be specified as a minor release (e.g.: 1.8) or a specific patch release (e.g.: 1.8.2). When the a minor release is specified and it is the same as the installed version of the plugin, the `upgrade` parameter for that plugin must be set to `true` in order for the plugin to be updated to the latest patch release. The internal variable `__pulp_version` was renamed to `__pulpcore_version`. The release-static test scenario for molecule was also updated to test this feature. fixes: #8847 https://pulp.plan.io/issues/8847
- Loading branch information
Showing
19 changed files
with
243 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Added support for specifying a minor version for `pulpcore_version`. A single version of pulp_installer can be used to | ||
install all bug fix releases within a minor release of pulpcore. |
This file contains 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
`pulp_version` variable has been replaced with `pulpcore_version`. |
This file contains 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 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 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 was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,144 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- set_fact: | ||
pulpcore_version: "3.14.5" | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.8.0" | ||
pulp_rpm: | ||
version: "3.13.0" | ||
when: ansible_facts.os_family == 'RedHat' | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.8.0" | ||
when: ansible_facts.os_family == 'Debian' | ||
- include_role: | ||
name: pulp_all_services | ||
- name: Obtain list of packages & versions in the venv after install | ||
pip_package_info: | ||
clients: "/usr/local/lib/pulp/bin/pip" | ||
register: pip_pkgs | ||
- name: Assert pulpcore==3.14.5, pulp-file=1.8.0 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulpcore'][0].version is version("3.14.5", "=") | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-file'][0].version is version("1.8.0", "=") | ||
- name: Assert pulp-rpm==3.13.0 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-rpm'][0].version is version("3.13.0", "=") | ||
when: ansible_facts.os_family == 'RedHat' | ||
|
||
- hosts: all | ||
tasks: | ||
- set_fact: | ||
pulpcore_version: "3.14" | ||
pulpcore_update: false | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.8" | ||
upgrade: false | ||
pulp_rpm: | ||
version: "3.13" | ||
upgrade: false | ||
when: ansible_facts.os_family == 'RedHat' | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.8" | ||
upgrade: fasle | ||
when: ansible_facts.os_family == 'Debian' | ||
- include_role: | ||
name: pulp_common | ||
- name: Obtain list of packages & versions in the venv after install | ||
pip_package_info: | ||
clients: "/usr/local/lib/pulp/bin/pip" | ||
register: pip_pkgs | ||
- name: Assert pulpcore==3.14.5, pulp-file=1.8.0 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulpcore'][0].version is version("3.14.5", "=") | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-file'][0].version is version("1.8.0", "=") | ||
- name: Assert pulp-rpm==3.13.0 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-rpm'][0].version is version("3.13.0", "=") | ||
when: ansible_facts.os_family == 'RedHat' | ||
|
||
- hosts: all | ||
tasks: | ||
- set_fact: | ||
pulpcore_version: "3.14" | ||
pulpcore_update: true | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.8" | ||
upgrade: true | ||
pulp_rpm: | ||
version: "3.13" | ||
upgrade: true | ||
when: ansible_facts.os_family == 'RedHat' | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.8" | ||
upgrade: true | ||
when: ansible_facts.os_family == 'Debian' | ||
- include_role: | ||
name: pulp_common | ||
- name: Obtain list of packages & versions in the venv after install | ||
pip_package_info: | ||
clients: "/usr/local/lib/pulp/bin/pip" | ||
register: pip_pkgs | ||
- name: Assert pulpcore==3.14.6, pulp-file==1.8.2 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulpcore'][0].version is version("3.14.6", ">=") | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-file'][0].version is version("1.8.2", ">=") | ||
- name: Assert pulp-rpm==3.13.3 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-rpm'][0].version is version("3.13.3", ">=") | ||
when: ansible_facts.os_family == 'RedHat' | ||
|
||
- hosts: all | ||
tasks: | ||
- set_fact: | ||
pulpcore_version: "3.15" | ||
pulpcore_update: false | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.9" | ||
upgrade: false | ||
pulp_rpm: | ||
version: "3.15" | ||
upgrade: false | ||
when: ansible_facts.os_family == 'RedHat' | ||
- set_fact: | ||
pulp_install_plugins: | ||
pulp_file: | ||
version: "1.9" | ||
upgrade: fasle | ||
when: ansible_facts.os_family == 'Debian' | ||
- include_role: | ||
name: pulp_common | ||
- name: Obtain list of packages & versions in the venv after install | ||
pip_package_info: | ||
clients: "/usr/local/lib/pulp/bin/pip" | ||
register: pip_pkgs | ||
- name: Assert pulpcore==3.15.2, pulp-file=1.9.1 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulpcore'][0].version is version("3.15.2", ">=") | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-file'][0].version is version("1.9.1", ">=") | ||
- name: Assert pulp-rpm==3.15.0 | ||
assert: | ||
that: | ||
- pip_pkgs.packages['/usr/local/lib/pulp/bin/pip']['pulp-rpm'][0].version is version("3.15.0", ">=") | ||
when: ansible_facts.os_family == 'RedHat' |
This file contains 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,12 +1,6 @@ | ||
--- | ||
__pulp_database_config_run_once: false | ||
pulp_default_admin_password: password | ||
pulp_upgrade: true | ||
pulp_install_plugins: | ||
pulp-file: | ||
upgrade: true | ||
pulp-rpm: | ||
upgrade: true | ||
pulp_settings: | ||
secret_key: secret | ||
content_origin: "https://{{ ansible_fqdn }}" |
This file contains 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,6 +1 @@ | ||
ansible_python_interpreter: /usr/bin/python3 | ||
pulp_install_plugins: | ||
pulp-file: | ||
upgrade: true | ||
# pulp-rpm: | ||
# upgrade: true |
This file contains 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 |
---|---|---|
|
@@ -58,8 +58,6 @@ scenario: | |
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- check | ||
- side_effect | ||
- verify | ||
verifier: | ||
|
This file contains 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 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 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.