Skip to content

Commit 9ad835e

Browse files
author
Graeme Davison and Joseph Palermo
committedJul 21, 2014
Merge remote-tracking branch 'origin/pr/456' into develop
2 parents 2abbc04 + 81ba688 commit 9ad835e

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed
 

‎jobs/uaa/spec

-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ properties:
6565
default: false
6666
uaa.scim.users:
6767
description:
68-
uaa.spring_profiles:
69-
description:
7068
ccdb.address:
7169
description: "The CloudController database IP address"
7270
ccdb.databases:

‎jobs/uaa/templates/uaa.yml.erb

+6-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ database:
99
username: <%= uaa_role.name %>
1010
password: "<%= uaa_role.password %>"
1111

12-
<% if properties.uaa && properties.uaa.spring_profiles && properties.uaa.spring_profiles.eql?('ldap') && properties.uaa.ldap %>
13-
spring_profiles: <%= properties.uaa.spring_profiles %>,<%=properties.uaadb.db_scheme%>
14-
<% elsif properties.uaa && properties.uaa.spring_profiles && properties.uaa.spring_profiles.include?('ldap') && properties.uaa.ldap %>
15-
spring_profiles: <%= properties.uaa.spring_profiles ? properties.uaa.spring_profiles : properties.uaadb.db_scheme %>
16-
<% elsif properties.login && properties.login.spring_profiles && properties.login.spring_profiles.include?('ldap') && properties.login.ldap %>
17-
spring_profiles: <%= properties.uaa.spring_profiles ? properties.uaa.spring_profiles : properties.uaadb.db_scheme %>,ldap
12+
<% if properties.uaa && properties.uaa.ldap && properties.uaa.ldap.profile_type %>
13+
spring_profiles: <%= properties.uaadb.db_scheme %>,ldap
14+
<% elsif properties.login && properties.login.spring_profiles && properties.login.spring_profiles.include?('ldap') && properties.login.ldap && properties.login.ldap.profile_type %>
15+
spring_profiles: <%= properties.uaadb.db_scheme %>,ldap
1816
<% else %>
19-
spring_profiles: <%= properties.uaa.spring_profiles ? properties.uaa.spring_profiles : properties.uaadb.db_scheme %>
17+
spring_profiles: <%= properties.uaadb.db_scheme %>
2018
<% end %>
2119

2220
logging:
@@ -122,7 +120,7 @@ require_https: <%= properties.uaa.require_https %>
122120
<% if !properties.uaa.dump_requests.nil? %>
123121
dump_requests: <%= properties.uaa.dump_requests %>
124122
<% end %>
125-
<% if properties.uaa && properties.uaa.spring_profiles && properties.uaa.spring_profiles.include?('ldap') && properties.uaa.ldap && properties.uaa.ldap.profile_type %>
123+
<% if properties.uaa && properties.uaa.ldap && properties.uaa.ldap.profile_type %>
126124
ldap:
127125
ldapdebug: 'Ldap configured through UAA'
128126
profile:

‎templates/cf-properties.yml

+2
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ properties:
199199
login:
200200
client_secret: ~
201201

202+
ldap: ~
203+
202204
clients:
203205
<<: (( merge || nil ))
204206
login:

0 commit comments

Comments
 (0)