forked from nicholasamorim/docker-cronicle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.json
237 lines (230 loc) · 9.72 KB
/
setup.json
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
{
"storage": [
[ "put", "users/admin", {
"username": "admin",
"password": "$2a$10$VAF.FNvz1JqhCAB5rCh9GOa965eYWH3fcgWIuQFAmsZnnVS/.ye1y",
"full_name": "Administrator",
"email": "admin@cronicle.com",
"active": 1,
"modified": 1434125333,
"created": 1434125333,
"salt": "salty",
"privileges": {
"admin": 1
}
} ],
[ "put", "users/stephane", {
"username": "stephane",
"password": "$2a$10$VAF.FNvz1JqhCAB5rCh9GOa965eYWH3fcgWIuQFAmsZnnVS/.ye1y",
"full_name": "Administrator",
"email": "admin@cronicle.com",
"active": 1,
"modified": 1434125333,
"created": 1434125333,
"salt": "salty",
"privileges": {
"admin": 1
}
} ],
[ "listCreate", "global/users", { "page_size": 100 } ],
[ "listPush", "global/users", { "username": "admin" } ],
[ "listCreate", "global/plugins", {} ],
[ "listPush", "global/plugins", {
"id": "testplug",
"title": "Test Plugin",
"enabled": 1,
"command": "bin/test-plugin.js",
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"params": [
{ "id":"duration", "type":"text", "size":10, "title":"Test Duration (seconds)", "value": 60 },
{ "id":"progress", "type":"checkbox", "title":"Report Progress", "value": 1 },
{ "id":"burn", "type":"checkbox", "title":"Burn Memory/CPU", "value": 0 },
{ "id":"action", "type":"select", "title":"Simulate Action", "items":["Success","Failure","Crash"], "value": "Success" },
{ "id":"secret", "type":"hidden", "value":"Will not be shown in Event UI" }
]
} ],
[ "listPush", "global/plugins", {
"id": "shellplug",
"title": "Shell Script",
"enabled": 1,
"command": "bin/shell-plugin.js",
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"params": [
{ "id":"script", "type":"textarea", "rows":10, "title":"Script Source", "value": "#!/bin/sh\n\n# Enter your shell script code here" },
{ "id":"annotate", "type":"checkbox", "title":"Add Date/Time Stamps to Log", "value": 0 },
{ "id":"json", "type":"checkbox", "title":"Interpret JSON in Output", "value": 0 }
]
} ],
[ "listPush", "global/plugins", {
"id": "mongobackup",
"title": "Mongo Backup",
"enabled": 1,
"command": "bin/shell-plugin.js",
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"params": [
{ "id":"script", "type":"textarea", "rows":10, "title":"Script Source", "value": "#!/bin/sh\n\n /opt/cronicle/plugins/mongo-backup.sh" },
{ "id":"annotate", "type":"checkbox", "title":"Add Date/Time Stamps to Log", "value": 0 },
{ "id":"json", "type":"checkbox", "title":"Interpret JSON in Output", "value": 0 },
{ "id":"uri", "type":"textarea", "title":"mongo uri", "value": "" },
{ "id":"name", "type":"textarea", "title":"name of the backup", "value": "dump", "rows": 1 },
{ "id":"s3_destination", "type":"textarea", "title":"destination on S3 (e.g. bucketName/path1/path2/path3)", "value": "", "rows": 1 },
{ "id":"aws_access_key_id", "type":"hidden", "title":"aws_access_key_id", "value": "AKIAWEEJNJXHB3KT6PVI", "size": 40 },
{ "id":"aws_secret_access_key", "type":"hidden", "title":"aws_secret_access_key", "value": "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", "size": 40 },
{ "id":"aws_default_region", "type":"hidden", "title":"aws_default_region", "value": "eu-west-1", "size": 10 }
]
} ],
[ "listPush", "global/plugins", {
"id": "urlplug",
"title": "HTTP Request",
"enabled": 1,
"command": "bin/url-plugin.js",
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"params": [
{ "type":"select", "id":"method", "title":"Method", "items":["GET", "HEAD", "POST"], "value":"GET" },
{ "type":"textarea", "id":"url", "title":"URL", "rows":3, "value":"http://" },
{ "type":"textarea", "id":"headers", "title":"Request Headers", "rows":4, "value":"User-Agent: Cronicle/1.0" },
{ "type":"textarea", "id":"data", "title":"POST Data", "rows":4, "value":"" },
{ "type":"text", "id":"timeout", "title":"Timeout (Seconds)", "size":5, "value":"30" },
{ "type":"checkbox", "id":"follow", "title":"Follow Redirects", "value":0 },
{ "type":"checkbox", "id":"ssl_cert_bypass", "title":"SSL Cert Bypass", "value":0 },
{ "type":"text", "id":"success_match", "title":"Success Match", "size":20, "value":"" },
{ "type":"text", "id":"error_match", "title":"Error Match", "size":20, "value":"" }
]
} ],
[ "listCreate", "global/categories", {} ],
[ "listPush", "global/categories", {
"id": "general",
"title": "General",
"enabled": 1,
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"description": "For events that don't fit anywhere else.",
"max_children": 0
} ],
[ "listPush", "global/categories", {
"id": "mongo",
"title": "Mongo Backups",
"enabled": 1,
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"description": "Mongo Backup events",
"max_children": 0
} ],
[ "listCreate", "global/server_groups", {} ],
[ "listPush", "global/server_groups", {
"id": "maingrp",
"title": "Primary Group",
"regexp": "_HOSTNAME_",
"master": 1
} ],
[ "listPush", "global/server_groups", {
"id": "allgrp",
"title": "All Servers",
"regexp": ".+",
"master": 0
} ],
[ "listCreate", "global/servers", {} ],
[ "listPush", "global/servers", {
"hostname": "_HOSTNAME_",
"ip": "_IP_"
} ],
[ "listCreate", "global/schedule", {} ],
[ "listCreate", "global/api_keys", {} ],
[ "listPush", "global/api_keys", {
"active": "1",
"title": "admin Api Key",
"description": "This API key is used to setup events after the setup phase",
"id": "adminKey",
"key": "GF4Ktj3ROl9MUeeeM5N2Or1ketKyX2QV",
"username": "admin",
"modified": 1434125333,
"created": 1434125333,
"privileges": {
"admin": 0,
"create_events": 1,
"edit_events": 1,
"delete_events": 1,
"run_events": 1,
"abort_events": 1,
"state_update": 1
}
} ]
],
"build": {
"common": [
[ "symlinkCompress", "node_modules/jquery/dist/jquery.min.js", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/jquery/dist/jquery.min.map", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/zxcvbn/dist/zxcvbn.js", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/zxcvbn/dist/zxcvbn.js.map", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/chart.js/dist/Chart.min.js", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/font-awesome/css/font-awesome.min.css", "htdocs/css/" ],
[ "symlinkCompress", "node_modules/font-awesome/css/font-awesome.css.map", "htdocs/css/" ],
[ "copyFiles", "node_modules/font-awesome/fonts/*", "htdocs/fonts/" ],
[ "symlinkCompress", "node_modules/mdi/css/materialdesignicons.min.css", "htdocs/css/" ],
[ "symlinkCompress", "node_modules/mdi/css/materialdesignicons.min.css.map", "htdocs/css/" ],
[ "copyFiles", "node_modules/mdi/fonts/*", "htdocs/fonts/" ],
[ "symlinkCompress", "node_modules/moment/min/moment.min.js", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/moment-timezone/builds/moment-timezone-with-data.min.js", "htdocs/js/external/" ],
[ "symlinkCompress", "node_modules/jstimezonedetect/dist/jstz.min.js", "htdocs/js/external/" ],
[ "symlinkFile", "node_modules/pixl-webapp/js", "htdocs/js/common" ],
[ "symlinkFile", "node_modules/pixl-webapp/css/base.css", "htdocs/css/" ],
[ "copyFiles", "node_modules/pixl-webapp/fonts/*", "htdocs/fonts/" ],
[ "chmodFiles", "755", "bin/*" ]
],
"dev": [
[ "deleteFiles", "htdocs/css/_combo*" ],
[ "deleteFiles", "htdocs/js/_combo*" ],
[ "deleteFile", "htdocs/index.html" ],
[ "deleteFile", "htdocs/index.html.gz" ],
[ "symlinkFile", "htdocs/index-dev.html", "htdocs/index.html" ],
[ "symlinkFile", "sample_conf", "conf" ]
],
"dist": [
{
"action": "generateSecretKey",
"file": "sample_conf/config.json",
"key": "secret_key"
},
[ "copyDir", "sample_conf", "conf", true ],
[ "copyFile", "htdocs/index-dev.html", "htdocs/index.html" ],
{
"action": "bundleCompress",
"uglify": false,
"header": "/* Copyright (c) PixlCore.com, MIT License. https://github.com/jhuckaby/Cronicle */",
"dest_bundle": "htdocs/js/_combo.js",
"html_file": "htdocs/index.html",
"match_key": "COMBINE_SCRIPT",
"dest_bundle_tag": "<script src=\"js/_combo.js\"></script>"
},
{
"action": "bundleCompress",
"strip_source_maps": true,
"dest_bundle": "htdocs/css/_combo.css",
"html_file": "htdocs/index.html",
"match_key": "COMBINE_STYLE",
"dest_bundle_tag": "<link rel=\"stylesheet\" href=\"css/_combo.css\">"
},
{
"action": "printMessage",
"lines": [
"Welcome to Cronicle!",
"First time installing? You should configure your settings in '/opt/cronicle/conf/config.json'.",
"Next, if this is a master server, type: '/opt/cronicle/bin/control.sh setup' to init storage.",
"Then, to start the service, type: '/opt/cronicle/bin/control.sh start'.",
"For full docs, please visit: http://github.com/jhuckaby/Cronicle",
"Enjoy!"
]
}
]
}
}