Skip to content

Instantly share code, notes, and snippets.

@bennetgallein
Created April 21, 2024 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennetgallein/da331b61cce0869f6f84f04df8ff8afe to your computer and use it in GitHub Desktop.
Save bennetgallein/da331b61cce0869f6f84f04df8ff8afe to your computer and use it in GitHub Desktop.
{
"drawflow": {
"Home": {
"data": {
"1": {
"id": 1,
"name": "event",
"data": {
"event": "server::create"
},
"class": "",
"html": "event",
"typenode": "vue",
"inputs": {},
"outputs": {
"output_1": {
"connections": [
{
"node": "2",
"output": "input_1"
},
{
"node": "4",
"output": "input_1"
},
{
"node": "8",
"output": "input_1"
}
]
}
},
"pos_x": 158,
"pos_y": 391
},
"2": {
"id": 2,
"name": "filter",
"data": {
"field": "charges.chargeId",
"operation": "=",
"value": "0"
},
"class": "",
"html": "filter",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "1",
"input": "output_1"
}
]
}
},
"outputs": {
"output_1": {
"connections": [
{
"node": "3",
"output": "input_1"
}
]
},
"output_2": {
"connections": [
{
"node": "6",
"output": "input_1"
}
]
}
},
"pos_x": 484,
"pos_y": 87
},
"3": {
"id": 3,
"name": "modify-server",
"data": {
"serverid": "id",
"component": "ha",
"action": "ha-status",
"hastatus": "enabled",
"hagroup": "",
"hamaxrelocate": "1",
"hamaxrestart": "1"
},
"class": "",
"html": "modify-server",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "2",
"input": "output_1"
}
]
}
},
"outputs": {},
"pos_x": 997,
"pos_y": -416
},
"4": {
"id": 4,
"name": "filter",
"data": {
"field": "charges.chargeId",
"operation": "=",
"value": "0"
},
"class": "",
"html": "filter",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "1",
"input": "output_1"
}
]
}
},
"outputs": {
"output_1": {
"connections": [
{
"node": "5",
"output": "input_1"
}
]
},
"output_2": {
"connections": [
{
"node": "7",
"output": "input_1"
}
]
}
},
"pos_x": 485,
"pos_y": 685
},
"5": {
"id": 5,
"name": "modify-server",
"data": {
"serverid": "id",
"component": "network",
"action": "change-rate",
"targetrate": "1000"
},
"class": "",
"html": "modify-server",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "4",
"input": "output_1"
}
]
}
},
"outputs": {},
"pos_x": 1004,
"pos_y": 509
},
"6": {
"id": 6,
"name": "nothing",
"data": {},
"class": "",
"html": "nothing",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "2",
"input": "output_2"
}
]
}
},
"outputs": {},
"pos_x": 998,
"pos_y": 295
},
"7": {
"id": 7,
"name": "nothing",
"data": {},
"class": "",
"html": "nothing",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "4",
"input": "output_2"
}
]
}
},
"outputs": {},
"pos_x": 1003,
"pos_y": 1037
},
"8": {
"id": 8,
"name": "filter",
"data": {
"field": "charges.chargeId",
"operation": "=",
"value": "0"
},
"class": "",
"html": "filter",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "1",
"input": "output_1"
}
]
}
},
"outputs": {
"output_1": {
"connections": [
{
"node": "10",
"output": "input_1"
}
]
},
"output_2": {
"connections": [
{
"node": "9",
"output": "input_1"
}
]
}
},
"pos_x": 474.6666666666667,
"pos_y": 1128.3333333333333
},
"9": {
"id": 9,
"name": "nothing",
"data": {},
"class": "",
"html": "nothing",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "8",
"input": "output_2"
}
]
}
},
"outputs": {},
"pos_x": 993,
"pos_y": 1656
},
"10": {
"id": 10,
"name": "ipam",
"data": {
"type": "ipv4",
"node": "{{node}}",
"userid": "{{userid}}",
"asfield": "newIP"
},
"class": "",
"html": "ipam",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "8",
"input": "output_1"
}
]
}
},
"outputs": {
"output_1": {
"connections": [
{
"node": "11",
"output": "input_1"
},
{
"node": "13",
"output": "input_1"
}
]
}
},
"pos_x": 1032,
"pos_y": 1160
},
"11": {
"id": 11,
"name": "modify-server",
"data": {
"serverid": "id",
"component": "network",
"action": "assign-v4",
"assignv4id": "{{newIP.id}}"
},
"class": "",
"html": "modify-server",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "10",
"input": "output_1"
}
]
}
},
"outputs": {},
"pos_x": 1657,
"pos_y": 1147
},
"12": {
"id": 12,
"name": "modify-server",
"data": {
"serverid": "id",
"component": "general",
"action": "note",
"generalnote": "Hi {{user.username}},\n\nwe've attached the following IPv4 address to this server: \"{{newIP.ip}}\". Please be aware that you need to restart the server once for cloud-init to do it's thing."
},
"class": "",
"html": "modify-server",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "13",
"input": "output_1"
}
]
}
},
"outputs": {},
"pos_x": 1936,
"pos_y": 1647
},
"13": {
"id": 13,
"name": "load-data",
"data": {
"table": "users",
"inputfield": "userid",
"joinfield": "id",
"asfield": "user"
},
"class": "",
"html": "load-data",
"typenode": "vue",
"inputs": {
"input_1": {
"connections": [
{
"node": "10",
"input": "output_1"
}
]
}
},
"outputs": {
"output_1": {
"connections": [
{
"node": "12",
"output": "input_1"
}
]
}
},
"pos_x": 1530,
"pos_y": 1737
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment