use of com.netflix.spinnaker.halyard.core.resource.v1.TemplatedResource in project halyard by spinnaker.
the class ApacheSpinnakerProfileFactory method getBindings.
@Override
protected Map<String, Object> getBindings(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
TemplatedResource resource = new StringResource(SSL_TEMPLATE);
Map<String, Object> bindings = new HashMap<>();
UiSecurity uiSecurity = deploymentConfiguration.getSecurity().getUiSecurity();
ApacheSsl apacheSsl = uiSecurity.getSsl();
bindings.put("cert-file", apacheSsl.getSslCertificateFile());
bindings.put("key-file", apacheSsl.getSslCertificateKeyFile());
String ssl = resource.setBindings(bindings).toString();
bindings.clear();
bindings.put("ssl", ssl);
bindings.put("deck-host", endpoints.getServices().getDeck().getHost());
bindings.put("deck-port", endpoints.getServices().getDeck().getPort() + "");
return bindings;
}
Aggregations