forked from SUNET/soc-ops
Don't add docker network if it exists
This commit is contained in:
parent
8ed157c256
commit
215883d881
1 changed files with 3 additions and 2 deletions
|
@ -43,10 +43,10 @@ class soc::sso(
|
|||
Boolean $satosa_certbot = false,
|
||||
String $translog = 'INFO',
|
||||
String $proxy = 'https://shared-sso-proxy1.cert.sunet.se/idp',
|
||||
Strnng $entityID = $proxy,
|
||||
String $entityID = $proxy,
|
||||
) {
|
||||
|
||||
if $ssotype == "docker" {
|
||||
if $ssotype == "docker" {
|
||||
file { '/opt/sso':
|
||||
ensure => directory,
|
||||
}
|
||||
|
@ -189,6 +189,7 @@ class soc::sso(
|
|||
# specify this subnet as source of trusted proxies. This is used in Graylog,
|
||||
# for example; see setting "trusted_proxies".
|
||||
command => 'docker network create sso --subnet 172.29.0.0/24 || true'
|
||||
unless => 'docker network ls | grep -q sso 2>&1'
|
||||
}
|
||||
|
||||
file { '/opt/sso/docker-compose.yml':
|
||||
|
|
Loading…
Add table
Reference in a new issue