This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #341 from mikedep333/7005_single_meta_role
As a user, I can run a single stably-named Ansible role
- Loading branch information
Showing
62 changed files
with
211 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Provide a single "pulp_all_services" role that users can specify instead of the current role list, | ||
and refactor the underlying roles and their dependency tree. |
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 @@ | ||
../../roles/pulp_api/README.md |
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/pulp_common/README.md |
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 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,20 @@ | ||
pulp_all_services | ||
================= | ||
|
||
A role to install all Pulp services on a single host. | ||
|
||
Users are supposed to specify this role as a single stable role name | ||
in their playbooks, rather than every single service role name, which | ||
are subject to change. The exception is when they want certain services | ||
on certain hosts. | ||
|
||
Currently, all it does is depend on the required roles, which are | ||
subject to change over time: | ||
- pulp_database | ||
- pulp_redis | ||
- pulp_api | ||
- pulp_content | ||
- pulp_resource_manager | ||
- pulp_workers | ||
- pulp_webserver | ||
- pulp_common (implicitly) |
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 @@ | ||
--- | ||
# defaults file for pulp_all_services |
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 @@ | ||
--- | ||
# handlers file for pulp_all_services |
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,31 @@ | ||
--- | ||
galaxy_info: | ||
author: Pulp Team | ||
description: A role to install all Pulp services on a single host. | ||
issue_tracker_url: https://pulp.plan.io/projects/pulp/issues/new | ||
license: GPL-2.0-or-later | ||
company: Red Hat | ||
min_ansible_version: 2.8 | ||
platforms: | ||
- name: Debian | ||
versions: | ||
- buster | ||
- name: Fedora | ||
versions: | ||
- 30 | ||
- 31 | ||
- name: EL | ||
versions: | ||
- 7 | ||
- 8 | ||
galaxy_tags: | ||
- pulp | ||
- pulpcore | ||
dependencies: | ||
- pulp_database | ||
- pulp_redis | ||
- pulp_api | ||
- pulp_content | ||
- pulp_resource_manager | ||
- pulp_workers | ||
- pulp_webserver |
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,5 @@ | ||
--- | ||
# tasks file for pulp_all_services | ||
|
||
# This role simply uses dependencies at this time. | ||
# meta/main.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,2 @@ | ||
--- | ||
# vars file for pulp_all_services |
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,30 @@ | ||
pulp_api | ||
========= | ||
|
||
Install, configure, and set the state of the pulp API service. | ||
|
||
Role Variables | ||
-------------- | ||
|
||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. | ||
|
||
* `pulp_api_bind` Interface and Port where Pulp Content `gunicorn` service will listen. Defaults to | ||
'127.0.0.1:24817'. This variable is the value used to render the `pulpcore-api.service.j2` template | ||
passing to the `--bind` parameter of the `gunicorn` service. | ||
* `pulp_api_workers`: Number of Pulp Content `gunicorn` processes for handling requests. Defaults to 1. | ||
Used to render the `pulpcore-api.service.j2` template, passing to the `--workers` parameter of the | ||
gunicorn service. | ||
|
||
Shared variables | ||
---------------- | ||
|
||
* `ansible_python_interpreter`: **Required**. Path to the Python interpreter. | ||
|
||
This role **is tightly coupled** to the required `pulp_common` role, and inherits | ||
some of its variables. | ||
|
||
* `pulp_config_dir` | ||
* `pulp_install_dir` | ||
* `pulp_ld_library_path`: An optional LD_LIBRARY_PATH environment variable for the pulpcore-api systemd process | ||
* `pulp_settings_file` | ||
* `pulp_user` |
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 @@ | ||
--- | ||
# defaults file for pulp_api | ||
pulp_api_bind: '127.0.0.1:24817' | ||
pulp_api_workers: 1 | ||
pulp_config_dir: "/etc/pulp" | ||
pulp_install_dir: '/usr/local/lib/pulp' | ||
pulp_settings_file: "{{ pulp_config_dir }}/settings.py" | ||
pulp_user: pulp |
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,9 @@ | ||
--- | ||
# handlers file for pulp_api | ||
- name: Restart pulpcore-api.service | ||
systemd: | ||
name: pulpcore-api.service | ||
enabled: true | ||
state: restarted | ||
daemon_reload: true | ||
become: 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,25 @@ | ||
--- | ||
galaxy_info: | ||
author: Pulp Team | ||
description: A role to setup Pulp 3's API service | ||
issue_tracker_url: https://pulp.plan.io/projects/pulp/issues/new | ||
license: GPL-2.0-or-later | ||
company: Red Hat | ||
min_ansible_version: 2.8 | ||
platforms: | ||
- name: Debian | ||
versions: | ||
- buster | ||
- name: Fedora | ||
versions: | ||
- 30 | ||
- 31 | ||
- name: EL | ||
versions: | ||
- 7 | ||
- 8 | ||
galaxy_tags: | ||
- pulp | ||
- pulpcore | ||
dependencies: | ||
- pulp_common |
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
File renamed without changes.
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 @@ | ||
--- | ||
# vars file for pulp_api |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -86,4 +86,3 @@ | |
- pulp_django_admin_path is not defined | ||
|
||
- import_tasks: configure.yml | ||
- import_tasks: wsgi.yml |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.