Skip to content
Snippets Groups Projects
Commit 30f8d538 authored by Andre Philippe Sailer's avatar Andre Philippe Sailer
Browse files

certificate: handle multiple landb_ip_aliases

parent aa6651b7
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,9 @@ class dirac ($dirac_user = 'dirac', $dirac_group = 'dirac',
# Collect the DNS alias to add them to the host certificate
if $::landb_ip_aliases {
$diraccertifalias = "${::landb_ip_aliases}.cern.ch"
# landb_ip_aliases are not FQDN
$aliases = split($::landb_ip_aliases, ',')
$diraccertifalias = join(suffix($aliases, '.cern.ch'), ',')
}
else {
$diraccertifalias = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment