forked from cloudfoundry/cf-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperm-service.yml
204 lines (184 loc) · 4.74 KB
/
perm-service.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# Perm Service
- type: replace
path: /instance_groups/-
value:
name: perm
instances: 1
azs: [z1]
vm_type: minimal
stemcell: default
networks:
- name: default
jobs:
- name: perm
release: perm
properties:
log_level: debug
tls: ((perm_tls))
sql:
db:
driver: mysql
username: perm
password: ((perm_database_password))
schema: perm
host: sql-db.service.cf.internal
port: 3306
tls:
required: true
ca_certs:
- ((pxc_server_ca.certificate))
uaa:
hostname: uaa.((system_domain))
port: 443
ca_certs:
- ((router_ca.certificate))
# Changes to other instance groups
- type: replace
path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/scim/users/name=admin/groups/-
value:
perm.admin
- type: replace
path: /instance_groups/name=database/jobs/name=mysql/properties/cf_mysql/mysql/seeded_databases/-
value:
name: perm
password: ((perm_database_password))
username: perm
- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/perm?
value:
enabled: true
query_enabled: true
ca_certs:
- ((perm_tls_ca.certificate))
- type: replace
path: /addons/name=bosh-dns/jobs/name=bosh-dns/properties/aliases/perm.service.cf.internal?
value:
- "*.perm.default.cf.bosh"
# Changes to releases
- type: replace
path: /releases/-
value:
name: perm
version: 0.0.7
url: https://storage.googleapis.com/perm-releases/perm-release-0.0.7.tgz
sha1: f1f7f0b36c1957aabc0dd478829418d04217a8d5
# Changes to variables
- type: replace
path: /variables/-
value:
name: perm_tls_ca
type: certificate
options:
is_ca: true
common_name: perm_ca
- type: replace
path: /variables/-
value:
name: perm_tls
type: certificate
options:
ca: perm_tls_ca
common_name: perm.service.cf.internal
extended_key_usage:
- client_auth
- server_auth
- type: replace
path: /variables/-
value:
name: perm_database_password
type: password
- type: replace
path: /variables/-
value:
name: perm_uaa_clients_cloud_controller_monitor_secret
type: password
- type: replace
path: /variables/-
value:
name: perm_uaa_clients_perm_monitor_secret
type: password
- type: replace
path: /variables/-
value:
name: perm_uaa_clients_cc_perm_secret
type: password
# Perm Errands
- type: replace
path: /instance_groups/-
value:
name: perm-drop-database
instances: 1
azs: [z1]
lifecycle: errand
vm_type: minimal
stemcell: default
networks:
- name: default
jobs:
- name: perm-drop-db
release: perm
properties:
sql:
db:
driver: mysql
username: perm
password: ((perm_database_password))
schema: perm
host: sql-db.service.cf.internal
port: 3306
- type: replace
path: /instance_groups/-
value:
name: capi-perm-migrator
instances: 1
azs: [z1]
lifecycle: errand
vm_type: minimal
stemcell: default
networks:
- name: default
jobs:
- name: cc-to-perm-migrator
release: perm
properties:
uaa:
hostname: uaa.((system_domain))
port: 443
ca_certs:
- ((router_ca.certificate))
cloud_controller:
hostname: api.((system_domain))
port: 443
client_id: cloud_controller_monitor
client_secret: ((perm_uaa_clients_cloud_controller_monitor_secret))
client_scopes:
- cloud_controller.admin_read_only
perm:
ca_certs:
- ((perm_tls_ca.certificate))
sql:
db:
driver: mysql
username: perm
password: ((perm_database_password))
schema: perm
host: sql-db.service.cf.internal
port: 3306
- type: replace
path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/clients/cloud_controller_monitor?
value:
authorities: cloud_controller.admin_read_only
authorized-grant-types: client_credentials
secret: ((perm_uaa_clients_cloud_controller_monitor_secret))
- type: replace
path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/clients/cc_perm?
value:
authorities: perm.admin
authorized-grant-types: client_credentials
secret: ((perm_uaa_clients_cc_perm_secret))
- type: replace
path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/clients/perm_monitor?
value:
authorities: perm.admin
authorized-grant-types: client_credentials
secret: ((perm_uaa_clients_perm_monitor_secret))