Skip to content
Closed
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
20 changes: 12 additions & 8 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#
# $proxy_pulp_isos_to_pulpcore:: Proxy /pulp/isos to pulpcore at /pulp/content
#
# $proxy_pulp_container_to_pulpcore:: Disable Crane so that Pulp 3 serves container content
#
# $reverse_proxy:: Add reverse proxy to the parent
#
# $reverse_proxy_port:: Reverse proxy listening port
Expand Down Expand Up @@ -216,14 +218,16 @@
}
}

include certs::apache
class { 'pulp::crane':
cert => $certs::apache::apache_cert,
key => $certs::apache::apache_key,
ca_cert => $certs::katello_server_ca_cert,
data_dir => '/var/lib/pulp/published/docker/v2/app',
ssl_protocol => $ssl_protocol,
require => Class['certs::apache'],
if !$proxy_pulp_container_to_pulpcore {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if !$proxy_pulp_container_to_pulpcore {
unless $proxy_pulp_container_to_pulpcore {

include certs::apache
class { 'pulp::crane':
cert => $certs::apache::apache_cert,
key => $certs::apache::apache_key,
ca_cert => $certs::katello_server_ca_cert,
data_dir => '/var/lib/pulp/published/docker/v2/app',
ssl_protocol => $ssl_protocol,
require => Class['certs::apache'],
}
}

include foreman_proxy_content::pub_dir
Expand Down