Created
March 21, 2017 20:34
-
-
Save formorer/d32506e1a90a9038c7a2ed9679bee204 to your computer and use it in GitHub Desktop.
Dynamische Objekterstellung
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* define customerenvs - projectname, customername, customerdomainpart | |
*/ | |
vars.custenvs.swisslitest01 = { customername = "customer swissli", domainpart = "swissli-test" } | |
vars.custenvs.gipfelitest01 = { customername = "customer gipfeli", domainpart = "gipfli-test" } | |
vars.custenvs.schwingerlitest01 = { customername = "customer schwingerli", domainpart = "schwingerli-test" } | |
for (custenv_name => config in vars.custenvs) { | |
object Service "shibboleth-http-external" use(custenv_name, config){ | |
vars += config | |
import "remote-service" | |
display_name = "Shibboleth HTTP service (external)" | |
check_command = "http" | |
vars.http_address = "idp." + vars.domainpart + ".external.ch" | |
vars.http_vhost = "idp." + vars.domainpart + ".external.ch" | |
vars.http_port = "443" | |
vars.http_ssl = "true" | |
vars.http_uri = "/idp/" | |
vars.http_expect = "HTTP/1.1 200" | |
host_name = custenv_name + "-app09-shibidp01.int.net" | |
check_interval = 15m | |
retry_interval = 5m | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment