prid service config

This commit is contained in:
Leif Johansson 2017-12-06 22:55:22 +01:00
parent 791030b8f1
commit 882f23f734
2 changed files with 23 additions and 1 deletions

View file

@ -51,3 +51,9 @@ r1.komreg.net:
- 'se-fre-lb-1.sunet.se'
- 'se-tug-lb-1.sunet.se'
port: '443'
'^prid-[0-9]+\.qa\.sveidas\.se$':
openstack_ubuntu_16_04_dockerhost:
konsulter:
sunet_iaas_cloud:
autoupdate:

View file

@ -257,7 +257,23 @@ class eidas_proxy {
"SPRING_PROFILES_ACTIVE=se",
"SPRING_CONFIG_LOCATION=/etc/eidas-proxy/$country/cfg/",
"PROXY_SERVICE_COOKIEENCRYPTPW=$proxy_service_cookie_encrypt_pw"]
}
} ->
class {'webserver': } ->
class {'https_server': }
}
class prid($hostname) {
sunet::docker_run {'eidas_proxy':
image => 'docker.sunet.se/prid-service',
imagetag => '1.0.0',
hostname => "$hostname",
ports => ['443:8443']
volumes => ['/var/log/prid-service:/var/log/prid-service',
'/etc/prid-service:/etc/prid-service',
'/etc/ssl:/etc/ssl'],
env => ["PRID_SERVICE_POLICY_CONFIGURATION=/etc/prid-service/policy.properties",
"CERTNAME=${hostname}_infra"]
} ->
class {'webserver': } ->
class {'https_server': }
}