basic config for proxy test SP

This commit is contained in:
Leif Johansson 2018-10-16 19:01:04 +02:00
parent 132604538d
commit e40b0fb090

View file

@ -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",