Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/playbooks/deploy/metadata.obsah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ variables:
help: Base flavor to use in this deployment.
choices:
- katello
- foreman
external_authentication:
help: External authentication method to use
choices:
Expand Down
4 changes: 4 additions & 0 deletions src/roles/httpd/templates/foreman-ssl-vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
</Location>
{% endif %}

{% if httpd_with_pulpcore %}
ProxyPass /pulp_ansible/galaxy/ {{ httpd_pulp_api_backend }}/pulp_ansible/galaxy/
ProxyPassReverse /pulp_ansible/galaxy/ {{ httpd_pulp_api_backend }}/pulp_ansible/galaxy/

Expand Down Expand Up @@ -106,6 +107,7 @@
ProxyPass {{ httpd_pulp_api_backend }}/pulp/api/v3 timeout=600
ProxyPassReverse {{ httpd_pulp_api_backend }}/pulp/api/v3
</Location>
{% endif %}

Alias /pub {{ httpd_pub_dir }}

Expand All @@ -114,8 +116,10 @@
Require all granted
</Location>

{% if httpd_with_pulpcore %}
ProxyPass /pulp/assets/ {{ httpd_pulp_api_backend }}/pulp/assets/
ProxyPassReverse /pulp/assets/ {{ httpd_pulp_api_backend }}/pulp/assets/
{% endif %}

## Proxy rules
ProxyRequests Off
Expand Down
2 changes: 2 additions & 0 deletions src/roles/httpd/templates/foreman-vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
RequestHeader unset REMOTE_USER-GROUPS
RequestHeader unset REMOTE_USER_GROUPS
{% endif %}
{% if httpd_with_pulpcore %}

<Location "/pulp/content">
RequestHeader unset X-CLIENT-CERT
Expand All @@ -54,6 +55,7 @@
ProxyPass {{ httpd_pulp_content_backend }}/pulp/content disablereuse=on timeout=600
ProxyPassReverse {{ httpd_pulp_content_backend }}/pulp/content
</Location>
{% endif %}

Alias /pub {{ httpd_pub_dir }}

Expand Down
22 changes: 22 additions & 0 deletions src/vars/flavors/foreman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
flavor_features:
- foreman

checks_to_execute:
- check_features
- check_hostname
- check_database_connection
# TODO: this requires 20 GB RAM but plain Foreman can work with a lot less
#- check_system_requirements
- check_podman_network_backend

health_checks_to_execute:
- check_hostname
- check_database_connection
- check_services
- check_foreman_api
- check_foreman_tasks
- check_host_facts_count
- check_duplicate_permissions

post_install_message_enabled: true
Loading