Add all TLS certificates to trusted chain

Add internal and admin certificates to chain if use_ssl hash used

Change-Id: I8a713d00dbdadbe178a16fa7d19b59a559ef0c6f
Closes-Bug: #1528622
This commit is contained in:
Stanislaw Bogatkin 2015-12-22 18:52:55 +03:00
parent db7a3a7e39
commit 65d1aa9911

View File

@ -18,6 +18,18 @@ define file_link {
source => "/etc/pki/tls/certs/public_${service}.pem",
}
}
if !empty(file("/etc/pki/tls/certs/internal_${service}.pem",'/dev/null')) {
file { "/usr/local/share/ca-certificates/${service}_internal_haproxy.crt":
source => "/etc/pki/tls/certs/internal_${service}.pem",
}
}
if !empty(file("/etc/pki/tls/certs/admin_${service}.pem",'/dev/null')) {
file { "/usr/local/share/ca-certificates/${service}_admin_haproxy.crt":
source => "/etc/pki/tls/certs/admin_${service}.pem",
}
}
}
if !empty($ssl_hash) {