diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index f8cd106b..ec0e7bcf 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -481,6 +481,28 @@ class validator($version="2.0.0") { ensure_resource('class','https_server',{}) } +class proxy_testsp($version="1.0.1",$public_hostname=undef,$uri_path="/testps",$profile="qa") { + $_version = safe_hiera('proxy_testsp_version',$version) + $hostname = $::fqdn + $_public_hostname = $public_hostname ? { + undef => $hostname, + default => $public_hostname + } + sunet::docker_run {'eidas-ps-testsp': + image => 'docker.sunet.se/eidas-ps-testsp', + imagetag => $_version, + hostname => $hostname, + ports => ['443:8443','127.0.0.1:8444:8009'], + volumes => ['/etc/ssl:/etc/ssl', + '/etc/localtime:/etc/localtime:ro'], + env => ["CERTNAME=$hostname", + "SP_ACCESS_ALLOW_ALL=true", + "SP_BASE_URI=https://$_public_hostname", + "SERVER_SERVLET_CONTEXT_PATH=$uri_path", + "SPRING_PROFILES_ACTIVE=$profile"] + } +} + class github_client_credential { sunet::ssh_host_credential { "github": hostname => "github.com",