forked from open-horizon-services/service-edgelake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeneric.json
148 lines (148 loc) · 4.72 KB
/
generic.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
{
"label": "$SERVICE_NAME Deployment Policy",
"description": "Policy to auto deploy $SERVICE_NAME",
"service": {
"name": "$SERVICE_NAME",
"org": "$HZN_ORG_ID",
"arch": "$ARCH",
"serviceVersions": [
{
"version": "$SERVICE_VERSION",
"priority":{}
}
]
},
"properties": [
],
"constraints": [
"purpose == edgelake",
"openhorizon.allowPrivileged == true"
],
"userInput": [
{
"serviceOrgid": "$HZN_ORG_ID",
"serviceUrl": "$SERVICE_NAME",
"serviceVersionRange": "[0.0.0,INFINITY)",
"inputs": [
{
"name": "NODE_TYPE",
"label": "Information regarding which AnyLog node configurations to enable. By default, even if everything is disabled, AnyLog starts TCP and REST connection protocols",
"type": "string",
"value": "${NODE_TYPE}"
},
{
"name": "NODE_NAME",
"label": "Name of the AnyLog instance",
"type": "string",
"value": "${NODE_NAME}"
},
{
"name": "COMPANY_NAME",
"label": "Owner of the AnyLog instance",
"type": "string",
"value": "${COMPANY_NAME}"
},
{
"name": "ANYLOG_SERVER_PORT",
"label": "Port address used by AnyLog's TCP protocol to communicate with other nodes in the network",
"type": "int",
"value": "${ANYLOG_SERVER_PORT}"
},
{
"name": "ANYLOG_REST_PORT",
"label": "Port address used by AnyLog's REST protocol",
"type": "int",
"value": "${ANYLOG_REST_PORT}"
},
{
"name": "TCP_BIND",
"label": "A bool value that determines if to bind to a specific IP and Port (a false value binds to all IPs)",
"type": "bool",
"value": "${TCP_BIND}"
},
{
"name": "REST_BIND",
"label": "A bool value that determines if to bind to a specific IP and Port (a false value binds to all IPs)",
"type": "bool",
"value": "${REST_BIND}"
},
{
"name": "LEDGER_CONN",
"label": "TCP connection information for Master Node",
"type": "string",
"value": "${LEDGER_CONN}"
},
{
"name": "DB_TYPE",
"label": "Physical database type (sqlite or psql)",
"type": "string",
"defaultValue": "sqlite",
"value": "${DB_TYPE}"
},
{
"name": "DB_USER",
"label": "Username for SQL database connection",
"type": "string",
"defaultValue": "admin",
"value": "${DB_USER}"
},
{
"name": "DB_PASSWD",
"label": "Password correlated to database user",
"type": "string",
"defaultValue": "Pa55W0rD!",
"value": "${DB_PASSWD}"
},
{
"name": "DB_IP",
"label": "Database IP address",
"type": "string",
"defaultValue": "127.0.0.1",
"value": "${DB_IP}"
},
{
"name": "DB_PORT",
"label": "Database port number",
"type": "string",
"defaultValue": "54332",
"value": "${DB_PORT}"
},
{
"name": "AUTOCOMMIT",
"label": "Whether to set autocommit data",
"type": "string",
"defaultValue": "false",
"value": "${AUTOCOMMIT}"
},
{
"name": "SYSTEM_QUERY",
"label": "Enable system query logical database",
"type": "string",
"defaultValue": "false",
"value": "${SYSTEM_QUERY}"
},
{
"name": "ENABLE_MQTT",
"label": "Whether to enable the default MQTT process",
"type": "bool",
"defaultValue": "false",
"value": "${ENABLE_MQTT}"
},
{
"name": "DEPLOY_LOCAL_SCRIPT",
"label": "Whether to automatically run a local (or personalized) script at the end of the process",
"type": "bool",
"defaultValue": "false",
"value": "${DEPLOY_LOCAL_SCRIPT}"
},
{
"name": "MONITOR_NODES",
"label": "Whether to monitor the node or not",
"type": "bool",
"defaultValue": "true",
"value": "${MONITOR_NODES}"
}
]
}
]
}