-
Notifications
You must be signed in to change notification settings - Fork 4
/
as3.json.j2
40 lines (40 loc) · 1.47 KB
/
as3.json.j2
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
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "123abc",
"label": "Multiple certificates example",
"remark": "Using multiple certificates",
"Sample_cert_02": {
"class": "Tenant",
{% for app in applications %}
"{{ app.name }}": {
"class": "Application",
"template": "{{ app.template }}",
"serviceMain": {
"class": "{{ app.class }}",
"virtualAddresses": [
"{{ app.virtualAddress }}"
],
"serverTLS": "{{ app.name }}webtls"
},
"{{ app.name }}webtls": {
"class": "TLS_Server",
"certificates": [{
"certificate": "{{ app.name }}webcert"
}]
},
"{{ app.name }}webcert": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": {{ lookup('file', playbook_dir + '/certs/' + app.name + 'certificate.pem') | to_json }},
"privateKey": {{ lookup('file', playbook_dir + '/keys/' + app.name + 'key.pem') | to_json }}
}
}{{ "," if not loop.last else "" }}
{% endfor %}
}
}
}