move hostname and country parameters to hiera
This commit is contained in:
parent
14d729edff
commit
7c761d9f02
4 changed files with 11 additions and 4 deletions
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
eidas_connector_hostname=eunode.qa.sveidas.se
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
eidas_proxy_hostname=xy.proxy.qa.sveidas.se
|
||||
eidas_proxy_country=xy
|
|
@ -20,11 +20,10 @@ r1.komreg.net:
|
|||
openstack_ubuntu_16_04_dockerhost:
|
||||
sunet_iaas_cloud:
|
||||
autoupdate:
|
||||
eidas_connector:
|
||||
|
||||
'^eidas-proxy-[0-9]+\.qa\.sveidas\.se$':
|
||||
openstack_ubuntu_16_04_dockerhost:
|
||||
sunet_iaas_cloud:
|
||||
autoupdate:
|
||||
eidas_proxy:
|
||||
hostname: xy.qa.sveidas.se
|
||||
country: xy
|
||||
|
|
|
@ -197,7 +197,8 @@ class swamid_pyff_signer {
|
|||
sunet::exabgp { 'swamid': }
|
||||
}
|
||||
|
||||
class eidas_connector($hostname) {
|
||||
class eidas_connector {
|
||||
$hostname = safe_hiera('eidas_connector_hostname')
|
||||
$idp_fticks_salt = safe_hiera('idp_fticks_salt',NOT_SET);
|
||||
file {['/etc/eidas-connector','/var/log/eidas-connector']: ensure => directory } ->
|
||||
sunet::docker_run {'eidas_connector':
|
||||
|
@ -212,7 +213,9 @@ class eidas_connector($hostname) {
|
|||
class {'https_server': }
|
||||
}
|
||||
|
||||
class eidas_proxy($hostname,$country) {
|
||||
class eidas_proxy {
|
||||
$hostname = safe_hiera('eidas_proxy_hostname');
|
||||
$country = safe_hiera('eidas_proxy_country');
|
||||
$proxy_service_cookie_encrypt_pw = safe_hiera('proxy_service_cookie_encrypt_pw',NOT_SET);
|
||||
file {['/etc/eidas-proxy/',"/etc/eidas-proxy/$country"]: ensure => directory } ->
|
||||
sunet::snippets::secret_file {"/etc/eidas-proxy/$country/nodeKeyStore.jks":
|
||||
|
|
Loading…
Add table
Reference in a new issue