-
Notifications
You must be signed in to change notification settings - Fork 371
/
setup.json
174 lines (168 loc) · 6.75 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
{
"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
}
} ],
[ "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": "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
} ],
[ "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", {} ]
],
"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!"
]
}
]
}
}