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.
As a pulp_installer user, I can install Pulp from RPMs
Heavily adapted from "allow installing pulp from packages" #188 Includes: 1. Dropping the fixed repo from the old PR. 2. Add var pulp_pkg_repo (currently only yum/dnf) 3. Finish cleaning up pulp_webserver_static_dir 4. Many new variables, but still using the overall pulp_install_plugins. 5. Testing upgrades with new images on quay (can't truly test until RPM updates are issued) 6. Cron/branch CI: Adding py38 testing 7. PR CI: Move upgrade testing from py37 to py38, and testing from RPMs on py37. 8. Deduplicating the tasks for checking plugins for nginx/apache snippets. 9. Using pulp_django_admin_paths list var because RPMs often use different names for django-admin. 10. Note: Rest of tasks should be package manager independent. 11. pulp_upgraded_manually variable in case users ran `yum update` 12. package only variables in seperate section of the pulp README.md. fixes: #6793 Includes these subtasks implemented: re: #6794 re: #6795 re: #6796 (It was easiest to implement them all in one PR.)
- Loading branch information
1 parent
790ec0f
commit 184f123
Showing
53 changed files
with
685 additions
and
303 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
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 @@ | ||
Add the ability to install Pulp from Linux distro (RPM) packages. |
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 @@ | ||
Let users specify an RPM repo containing Pulp. Introduces the new variable: `pulp_pkg_repo` |
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 @@ | ||
Add variables so users can specify the names of each RPM package to install (pulp_pkg_pulpcore_name | ||
& pulp_install_plugins's pkg_name) or to just override the prefix (pulp_pkg_name_prefix). |
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 @@ | ||
Create CI for installing Pulp from RPMs |
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 @@ | ||
../../.ansible-lint |
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 @@ | ||
../scenario_resources/Dockerfile.j2 |
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 @@ | ||
../release-dynamic/converge.yml |
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 @@ | ||
../scenario_resources/debian-redis-server.service |
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 @@ | ||
../packages-static/group_vars |
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,54 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
role-file: requirements.yml | ||
driver: | ||
name: docker | ||
lint: | | ||
yamllint . | ||
ansible-lint | ||
# This is ignored by molecule, but can be reused in yaml | ||
.platform_base: &platform_base | ||
privileged: False | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
tmpfs: | ||
# Fixes issues accessing .so files under /tmp during pip builds. | ||
# https://github.com/docker/compose/issues/1339 | ||
- /tmp:exec,mode=1777 | ||
- /run | ||
- /run/lock | ||
capabilities: | ||
- NET_ADMIN | ||
- NET_RAW | ||
platforms: | ||
- <<: *platform_base | ||
name: centos-7 | ||
image: centos:7 | ||
command: /sbin/init | ||
- <<: *platform_base | ||
name: centos-8 | ||
image: centos:8 | ||
command: /sbin/init | ||
provisioner: | ||
name: ansible | ||
config_options: | ||
defaults: | ||
stdout_callback: debug | ||
inventory: | ||
links: | ||
host_vars: ../scenario_resources/host_vars/ | ||
group_vars: ../scenario_resources/group_vars/ | ||
scenario: | ||
test_sequence: | ||
- lint | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- side_effect | ||
- verify | ||
verifier: | ||
name: inspec |
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,8 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- name: Hot patch redis-server service for docker operation (Debian) | ||
copy: | ||
src: debian-redis-server.service | ||
dest: /etc/systemd/system/redis-server.service | ||
when: ansible_distribution == "Debian" |
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 @@ | ||
../../requirements.yml |
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 @@ | ||
../../roles |
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 @@ | ||
../../.ansible-lint |
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 @@ | ||
../scenario_resources/Dockerfile.j2 |
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 @@ | ||
../../playbooks/example-use/playbook.yml |
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 @@ | ||
../scenario_resources/debian-redis-server.service |
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,10 @@ | ||
--- | ||
pulp_default_admin_password: password | ||
pulp_upgrade: true | ||
pulp_install_source: packages | ||
pulp_install_plugins: | ||
pulp-file: | ||
pulp_settings: | ||
secret_key: secret | ||
content_origin: "http://{{ ansible_fqdn }}" | ||
pulp_pkg_repo: "https://fedorapeople.org/groups/katello/releases/yum/nightly/pulpcore/el{{ ansible_distribution_major_version }}/x86_64/" |
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,54 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
role-file: requirements.yml | ||
driver: | ||
name: docker | ||
lint: | | ||
yamllint . | ||
ansible-lint | ||
# This is ignored by molecule, but can be reused in yaml | ||
.platform_base: &platform_base | ||
privileged: False | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
tmpfs: | ||
# Fixes issues accessing .so files under /tmp during pip builds. | ||
# https://github.com/docker/compose/issues/1339 | ||
- /tmp:exec,mode=1777 | ||
- /run | ||
- /run/lock | ||
capabilities: | ||
- NET_ADMIN | ||
- NET_RAW | ||
platforms: | ||
- <<: *platform_base | ||
name: centos-7 | ||
image: centos:7 | ||
command: /sbin/init | ||
- <<: *platform_base | ||
name: centos-8 | ||
image: centos:8 | ||
command: /sbin/init | ||
provisioner: | ||
name: ansible | ||
config_options: | ||
defaults: | ||
stdout_callback: debug | ||
inventory: | ||
links: | ||
host_vars: ../scenario_resources/host_vars/ | ||
group_vars: ../scenario_resources/group_vars/ | ||
scenario: | ||
test_sequence: | ||
- lint | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- side_effect | ||
- verify | ||
verifier: | ||
name: inspec |
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,8 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- name: Hot patch redis-server service for docker operation (Debian) | ||
copy: | ||
src: debian-redis-server.service | ||
dest: /etc/systemd/system/redis-server.service | ||
when: ansible_distribution == "Debian" |
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 @@ | ||
../../requirements.yml |
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 @@ | ||
../../roles |
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 @@ | ||
../../.ansible-lint |
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 @@ | ||
../scenario_resources/Dockerfile.j2 |
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 @@ | ||
../../playbooks/example-use/playbook.yml |
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 @@ | ||
../scenario_resources/debian-redis-server.service |
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,11 @@ | ||
--- | ||
pulp_default_admin_password: password | ||
pulp_upgrade: true | ||
pulp_install_source: packages | ||
pulp_install_plugins: | ||
pulp-file: | ||
pulp_settings: | ||
secret_key: secret | ||
content_origin: "http://{{ ansible_fqdn }}" | ||
pulp_pkg_repo: "https://fedorapeople.org/groups/katello/releases/yum/nightly/pulpcore/el{{ ansible_distribution_major_version }}/x86_64/" | ||
pulp_pkg_upgrade_all: 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
role-file: requirements.yml | ||
driver: | ||
name: docker | ||
lint: | | ||
yamllint . | ||
ansible-lint | ||
# This is ignored by molecule, but can be reused in yaml | ||
.platform_base: &platform_base | ||
privileged: False | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
tmpfs: | ||
# Fixes issues accessing .so files under /tmp during pip builds. | ||
# https://github.com/docker/compose/issues/1339 | ||
- /tmp:exec,mode=1777 | ||
- /run | ||
- /run/lock | ||
capabilities: | ||
- NET_ADMIN | ||
- NET_RAW | ||
platforms: | ||
- <<: *platform_base | ||
name: centos-7 | ||
# molecule often fails to pull, so we pull all images in .travis.yml | ||
image: quay.io/pulp/pulp-ci-pkgs-c7:3.3.1 | ||
command: /sbin/init | ||
- <<: *platform_base | ||
name: centos-8 | ||
image: quay.io/pulp/pulp-ci-pkgs-c8:3.3.1 | ||
command: /sbin/init | ||
provisioner: | ||
name: ansible | ||
config_options: | ||
defaults: | ||
stdout_callback: debug | ||
inventory: | ||
links: | ||
host_vars: ../scenario_resources/host_vars/ | ||
group_vars: ../scenario_resources/group_vars/ | ||
scenario: | ||
test_sequence: | ||
- lint | ||
- dependency | ||
- syntax | ||
- create | ||
- prepare | ||
- converge | ||
- idempotence | ||
- side_effect | ||
- verify | ||
verifier: | ||
name: inspec |
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,8 @@ | ||
--- | ||
- hosts: all | ||
tasks: | ||
- name: Hot patch redis-server service for docker operation (Debian) | ||
copy: | ||
src: debian-redis-server.service | ||
dest: /etc/systemd/system/redis-server.service | ||
when: ansible_distribution == "Debian" |
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 @@ | ||
../../requirements.yml |
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 @@ | ||
../../roles |
Oops, something went wrong.