Skip to content

Commit c212c4c

Browse files
committed
Allow for additional reverse proxy vhost options
the class foreman_proxy_content::reverse_proxy already has a parameter vhost_params. However, it is not exposed for usage, so while one can specify additional vhost parameters for HTTP via pulpcore::apache::http_vhost_options, there is no way to do the same for HTTPS. This commit changes that by adding a variable foreman_proxy_content::reverse_proxy_vhost_params that is then passed on to foreman_proxy_content::reverse_proxy such that a user can add additional vhost parameters for HTTP and HTTPS e.g. via custom-hiera.
1 parent 700a2fb commit c212c4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

manifests/init.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#
2525
# $reverse_proxy_backend_protocol:: Configure the protocol used by the reverse proxy to connect to Foreman
2626
#
27+
# $reverse_proxy_vhost_params:: Optional vhost parameters for the reverse proxy
28+
#
2729
# $pulpcore_allowed_content_checksums:: List of checksums to use for pulpcore content operations
2830
#
2931
# $pulpcore_manage_postgresql:: Manage the Pulpcore PostgreSQL database.
@@ -78,6 +80,7 @@
7880
Boolean $pulpcore_mirror = false,
7981

8082
Enum['h2', 'https'] $reverse_proxy_backend_protocol = 'h2',
83+
Hash $reverse_proxy_vhost_params = {},
8184

8285
Boolean $enable_yum = true,
8386
Boolean $enable_file = true,
@@ -244,6 +247,7 @@
244247
},
245248
port => $rhsm_port,
246249
priority => '10',
250+
vhost_params => $reverse_proxy_vhost_params,
247251
before => Class['pulpcore::apache'],
248252
}
249253
}

0 commit comments

Comments
 (0)