forked from jelastic-jps/lets-encrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.jps
174 lines (155 loc) · 4.9 KB
/
manifest.jps
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
version: 1.3
type: update
build: 201807232048
id: letsencrypt-ssl-addon
name: Let's Encrypt Free SSL
categories:
- apps/dev-and-admin-tools
targetEditions: [ "devops", "wordpress", "lite_do", "lite_vultr", "lite_gc", "ultimate", "light", "business" ]
targetNodes:
nodeType:
- tomcat6
- tomcat7
- tomcat8
- tomcat85
- tomcat9
- tomcat
- tomee
- tomee-dockerized
- glassfish3
- glassfish4
- glassfish
- jetty
- jetty6
- apache
- apache2
- nginxphp
- apache2-ruby
- nginx-ruby
- nginx
- nginx-dockerized
- nginxphp-dockerized
- haproxy
- apache-lb
- varnish
- varnish-dockerized
- payara
- wildfly
- nodejs
- apache-ruby
- apache-python
- nginxruby
- litespeedphp
- litespeedadc
- lemp
- llsmp
- jenkins
- jenkins2
homepage: https://github.com/jelastic-jps/lets-encrypt
baseUrl: https://raw.githubusercontent.com/jelastic-jps/lets-encrypt/master
logo: images/letsencrypt.png
description:
text: /text/description.md
short: Free tool to configure support of secured SSL connection for an environment,
by either internal or custom domain name.
globals:
scriptSufix: letsencrypt-ssl
mixins:
- configs/vers.yaml
settings:
fields:
- type: string
name: customDomains
vtype: domainlist
caption: External Domain(s)
placeholder: leave blank to get a test certificate for this environment domain
required: false
tooltip: |
Each of the specified external domains should be preliminarily bound via DNS record to the external IP of the node where add-on is installed (either directly via <a href="https://docs.jelastic.com/custom-domains/#how-to-configure-dns-record" target="_blank">A Record</a> or through CDN / external balancer proxy).<br><br>
<b>Note:</b> Leave this field blank for issuing a test SSL certificate bound to the internal environment domain.
onBeforeRedeployContainer [${targetNodes.nodeGroup}]:
callScript:
action: backup-scripts
onAfterRedeployContainer [${targetNodes.nodeGroup}]:
callScript:
action: restore-scripts
onAfterStart:
callScript:
action: check-for-update
buttons:
- confirmText: Do you want to update attached SSL certificate(s)?
loadingText: Updating...
action: update
caption: Update Now
successText: /text/success.md
- caption: Configure
settings: main
action: configure
onInstall:
- setGlobals:
nodeId: ${settings.nodeId:}
nodeGroup: ${targetNodes.nodeGroup:}
withExtIp: ${settings.withExtIp:true}
webroot: ${settings.webroot:}
webrootPath: ${settings.webrootPath:}
fallbackToX1: ${settings.fallbackToX1:}
deployHook: ${settings.deployHook:}
deployHookType: ${settings.deployHookType:}
undeployHook: ${settings.undeployHook:}
undeployHookType: ${settings.undeployHookType:}
test: ${settings.test:}
- installScript
onUninstall:
- callScript:
action: uninstall
- delete
onBeforeDelete: delete
onAfterClone:
install: ${baseUrl}/manifest.jps?_r=${fn.random}
envName: ${event.response.env.envName}
nodeGroup: ${globals.nodeGroup}
settings:
customDomains: ''
nodeGroup: ${globals.nodeGroup}
deployHookType: ${globals.deployHookType}
undeployHookType: ${globals.undeployHookType}
withExtIp: ${globals.withExtIp}
webroot: ${globals.webroot}
webrootPath: ${globals.webrootPath}
fallbackToX1: ${globals.fallbackToX1}
test: ${globals.test}
onAfterConfirmTransfer: installScript
actions:
installScript:
script: /scripts/create-installation-script.js?_r=${fn.random}
params:
scriptName: ${env.envName}-${targetNodes.nodeGroup}-${globals.scriptSufix}
baseUrl: ${baseUrl}
cronTime: 0 ${fn.random(1,6)},${fn.random(10,14)},${fn.random(15,20)} * * *
customDomains: ${settings.customDomains}
nodeId: ${globals.nodeId}
nodeGroup: ${globals.nodeGroup}
deployHook: ${globals.deployHook}
deployHookType: ${globals.deployHookType}
undeployHook: ${globals.undeployHook}
undeployHookType: ${globals.undeployHookType}
withExtIp: ${globals.withExtIp}
webroot: ${globals.webroot}
webrootPath: ${globals.webrootPath}
fallbackToX1: ${globals.fallbackToX1}
test: ${globals.test}
clientVersion: ${globals.version_acme-sh:}
callScript:
script: |
var j = jelastic, resp = j.dev.scripting.Eval(appid, session, '${env.envName}-${targetNodes.nodeGroup}-${globals.scriptSufix}', {action:'${this.action}'});
if (resp.result == 0 && typeof resp.response === 'object' && resp.response.result != 0) resp = resp.response;
return resp;
update:
- callScript:
action: auto-update
configure: installScript
delete:
script: |
jelastic.dev.scripting.DeleteScript('${env.envName}-${targetNodes.nodeGroup}-${globals.scriptSufix}');
return {result:0}
success: /text/success.md