-
Notifications
You must be signed in to change notification settings - Fork 38
Rely on pulpcore to set up Apache fragments #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -187,6 +187,9 @@ | |
| $foreman_url = $foreman_proxy::foreman_base_url | ||
| $reverse_proxy_real = $pulp or $reverse_proxy | ||
|
|
||
| # TODO: doesn't allow deploying a Pulp non-mirror without Foreman | ||
| $shared_with_foreman_vhost = ($pulpcore and !$pulpcore_mirror) or $pulp_master | ||
|
|
||
| $rhsm_port = $reverse_proxy_real ? { | ||
| true => $reverse_proxy_port, | ||
| false => 443 | ||
|
|
@@ -331,13 +334,33 @@ | |
| } | ||
| } | ||
|
|
||
| if $pulpcore and !$pulpcore_mirror { | ||
| include foreman::config::apache | ||
| if $pulpcore { | ||
| if $shared_with_foreman_vhost { | ||
| include foreman::config::apache | ||
| $servername = $foreman::config::apache::servername | ||
| $priority = $foreman::config::apache::priority | ||
| $apache_http_vhost = 'foreman' | ||
| $apache_https_vhost = 'foreman-ssl' | ||
| Class['foreman::config::apache'] -> Class['pulpcore::apache'] | ||
| } elsif $pulp and $pulp::manage_httpd { | ||
| $servername = $facts['networking']['fqdn'] | ||
| $priority = '05' | ||
| $apache_http_vhost = 'pulp-http' | ||
| $apache_https_vhost = 'pulp-https' | ||
| Class['pulp::apache'] -> Class['pulpcore::apache'] | ||
| } else { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This else is stand-alone Pulpcore? aka a mirror?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but without a Pulp 2 install. I haven't tested this branch yet, but I think you'll hit this if you spin up an EL8 proxy (if we provide the correct parameters). |
||
| $servername = undef | ||
| $priority = undef | ||
| $apache_http_vhost = undef | ||
| $apache_https_vhost = undef | ||
| } | ||
|
|
||
| class { 'pulpcore': | ||
| remote_user_environ_name => 'HTTP_REMOTE_USER', | ||
| manage_apache => false, | ||
| servername => $foreman::config::apache::servername, | ||
| apache_http_vhost => $apache_http_vhost, | ||
| apache_https_vhost => $apache_https_vhost, | ||
| apache_vhost_priority => $priority, | ||
| servername => $servername, | ||
| static_url => '/pulp/assets/', | ||
| postgresql_manage_db => $pulpcore_manage_postgresql, | ||
| postgresql_db_host => $pulpcore_postgresql_host, | ||
| postgresql_db_port => $pulpcore_postgresql_port, | ||
|
|
@@ -370,32 +393,13 @@ | |
| } | ||
|
|
||
| include pulpcore::plugin::container | ||
| include pulpcore::plugin::file | ||
| include pulpcore::plugin::rpm | ||
| include pulpcore::plugin::certguard | ||
|
|
||
| foreman::config::apache::fragment { 'pulpcore': | ||
| content => template('foreman_proxy_content/pulpcore-content-apache.conf.erb'), | ||
| ssl_content => template( | ||
| 'foreman_proxy_content/pulpcore-api-apache.conf.erb', | ||
| 'foreman_proxy_content/pulpcore-content-apache.conf.erb', | ||
| 'foreman_proxy_content/pulpcore-docker-apache.conf.erb' | ||
| ), | ||
| } | ||
|
|
||
| if $proxy_pulp_isos_to_pulpcore { | ||
| foreman::config::apache::fragment { 'pulpcore-isos': | ||
| content => template('foreman_proxy_content/pulpcore-isos-apache.conf.erb'), | ||
| ssl_content => template('foreman_proxy_content/pulpcore-isos-apache.conf.erb'), | ||
| } | ||
| class { 'pulpcore::plugin::file': | ||
| use_pulp2_content_route => $proxy_pulp_isos_to_pulpcore, | ||
| } | ||
|
|
||
| if $proxy_pulp_yum_to_pulpcore { | ||
| foreman::config::apache::fragment { 'pulpcore-yum': | ||
| content => template('foreman_proxy_content/pulpcore-yum-apache.conf.erb'), | ||
| ssl_content => template('foreman_proxy_content/pulpcore-yum-apache.conf.erb'), | ||
| } | ||
| class { 'pulpcore::plugin::rpm': | ||
| use_pulp2_content_route => $proxy_pulp_yum_to_pulpcore, | ||
| } | ||
| include pulpcore::plugin::certguard | ||
| } | ||
|
|
||
| if $puppet { | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This obviously needs to be converted in an updated minimum version in metadata.json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needed to be changed before it was merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pushed 45e251b directly to master)