Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/deposit.pp
Show All 17 Lines | class profile::swh::deploy::deposit { | ||||
$backend_http_timeout = lookup('swh::deploy::deposit::backend::http_timeout') | $backend_http_timeout = lookup('swh::deploy::deposit::backend::http_timeout') | ||||
$backend_reload_mercy = lookup('swh::deploy::deposit::backend::reload_mercy') | $backend_reload_mercy = lookup('swh::deploy::deposit::backend::reload_mercy') | ||||
$vhost_url = lookup('swh::deploy::deposit::url') | $vhost_url = lookup('swh::deploy::deposit::url') | ||||
$cert_name = lookup('swh::deploy::deposit::vhost::letsencrypt_cert') | $cert_name = lookup('swh::deploy::deposit::vhost::letsencrypt_cert') | ||||
$vhosts = lookup('letsencrypt::certificates')[$cert_name]['domains'] | $vhosts = lookup('letsencrypt::certificates')[$cert_name]['domains'] | ||||
$full_conf = $conf_hiera + {allowed_hosts => $vhosts} | # authentication provider + optional keycloak config | ||||
$conf_authent = lookup('swh::deploy::deposit::config::authentication') | |||||
$full_conf = $conf_hiera + $conf_authent + {allowed_hosts => $vhosts} | |||||
if $swh_hostname['fqdn'] in $vhosts { | if $swh_hostname['fqdn'] in $vhosts { | ||||
$vhost_name = $swh_hostname['fqdn'] | $vhost_name = $swh_hostname['fqdn'] | ||||
} else { | } else { | ||||
$vhost_name = $vhosts[0] | $vhost_name = $vhosts[0] | ||||
} | } | ||||
$vhost_aliases = delete($vhosts, $vhost_name) | $vhost_aliases = delete($vhosts, $vhost_name) | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |