Skip to content

Commit

Permalink
Fixes #30716: Ensure /pub on foreman proxy can be browsed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Aug 26, 2020
1 parent 3fae22e commit f23de05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
# degradation due to I/O blocking and is not recommended in most cases. Modifying this parameter should be done
# incrementally with benchmarking at each step to determine an optimal value for your deployment.
#
# $pub_dir_options:: The Directory options as Apache applies to the /pub directory
#
class foreman_proxy_content (
String[1] $parent_fqdn = $foreman_proxy_content::params::parent_fqdn,
String $pulp_admin_password = $foreman_proxy_content::params::pulp_admin_password,
Expand Down Expand Up @@ -170,6 +172,8 @@
Stdlib::Absolutepath $pulpcore_postgresql_ssl_key = $foreman_proxy_content::params::pulpcore_postgresql_ssl_key,
Stdlib::Absolutepath $pulpcore_postgresql_ssl_root_ca = $foreman_proxy_content::params::pulpcore_postgresql_ssl_root_ca,
Integer[0] $pulpcore_worker_count = $foreman_proxy_content::params::pulpcore_worker_count,

String $pub_dir_options = '+FollowSymLinks +Indexes',
) inherits foreman_proxy_content::params {
include certs
include foreman_proxy
Expand Down Expand Up @@ -267,7 +271,9 @@
require => Class['certs::apache'],
}

include foreman_proxy_content::pub_dir
class { 'foreman_proxy_content::pub_dir':
pub_dir_options => $pub_dir_options,
}
}

if $pulp {
Expand Down

0 comments on commit f23de05

Please sign in to comment.