Skip to content

Commit 3dffd02

Browse files
authored
core: move misc scripts to structured addon/pve paths | Refactor JSON Editor & Script Mapping (#3765)
* Move Scripts to Tools / Add-Ons * fix json editor slug generating * update type in jsons * remove wrong method * move copy-data to tools
1 parent f2f1037 commit 3dffd02

File tree

88 files changed

+1327
-1481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1327
-1481
lines changed
Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
11
{
2-
"name": "Proxmox VE LXC IP-Tag",
3-
"slug": "add-lxc-iptag",
4-
"categories": [
5-
1
6-
],
7-
"date_created": "2024-12-16",
8-
"type": "misc",
9-
"updateable": false,
10-
"privileged": false,
11-
"interface_port": null,
12-
"documentation": null,
13-
"website": null,
14-
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/proxmox.svg",
15-
"description": "This script automatically adds IP address as tags to LXC containers using a Systemd service. The service also updates the tags if a LXC IP address is changed.",
16-
"install_methods": [
17-
{
18-
"type": "default",
19-
"script": "misc/add-lxc-iptag.sh",
20-
"resources": {
21-
"cpu": null,
22-
"ram": null,
23-
"hdd": null,
24-
"os": null,
25-
"version": null
26-
}
27-
}
28-
],
29-
"default_credentials": {
30-
"username": null,
31-
"password": null
2+
"name": "Proxmox VE LXC IP-Tag",
3+
"slug": "add-lxc-iptag",
4+
"categories": [1],
5+
"date_created": "2024-12-16",
6+
"type": "pve",
7+
"updateable": false,
8+
"privileged": false,
9+
"interface_port": null,
10+
"documentation": null,
11+
"website": null,
12+
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/proxmox.svg",
13+
"description": "This script automatically adds IP address as tags to LXC containers using a Systemd service. The service also updates the tags if a LXC IP address is changed.",
14+
"install_methods": [
15+
{
16+
"type": "default",
17+
"script": "tools/pve/add-lxc-iptag.sh",
18+
"resources": {
19+
"cpu": null,
20+
"ram": null,
21+
"hdd": null,
22+
"os": null,
23+
"version": null
24+
}
25+
}
26+
],
27+
"default_credentials": {
28+
"username": null,
29+
"password": null
30+
},
31+
"notes": [
32+
{
33+
"text": "Execute within the Proxmox shell",
34+
"type": "info"
3235
},
33-
"notes": [
34-
{
35-
"text": "Execute within the Proxmox shell",
36-
"type": "info"
37-
},
38-
{
39-
"text": "Configuration: `nano /opt/lxc-iptag/iptag.conf`. iptag.service must be restarted after change.",
40-
"type": "info"
41-
},
42-
{
43-
"text": "The Proxmox Node must contain ipcalc and net-tools. `apt-get install -y ipcalc net-tools`",
44-
"type": "warning"
45-
}
46-
]
36+
{
37+
"text": "Configuration: `nano /opt/lxc-iptag/iptag.conf`. iptag.service must be restarted after change.",
38+
"type": "info"
39+
},
40+
{
41+
"text": "The Proxmox Node must contain ipcalc and net-tools. `apt-get install -y ipcalc net-tools`",
42+
"type": "warning"
43+
}
44+
]
4745
}
Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
11
{
2-
"name": "NetBird",
3-
"slug": "add-netbird-lxc",
4-
"categories": [
5-
1
6-
],
7-
"date_created": "2024-05-19",
8-
"type": "misc",
9-
"updateable": false,
10-
"privileged": false,
11-
"interface_port": null,
12-
"documentation": "https://docs.netbird.io/",
13-
"website": "https://netbird.io/",
14-
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/netbird.svg",
15-
"description": "NetBird combines a configuration-free peer-to-peer private network and a centralized access control system in a single platform, making it easy to create secure private networks for your organization or home.",
16-
"install_methods": [
17-
{
18-
"type": "default",
19-
"script": "misc/add-netbird-lxc.sh",
20-
"resources": {
21-
"cpu": null,
22-
"ram": null,
23-
"hdd": null,
24-
"os": null,
25-
"version": null
26-
}
27-
}
28-
],
29-
"default_credentials": {
30-
"username": null,
31-
"password": null
2+
"name": "NetBird",
3+
"slug": "add-netbird-lxc",
4+
"categories": [1],
5+
"date_created": "2024-05-19",
6+
"type": "addon",
7+
"updateable": false,
8+
"privileged": false,
9+
"interface_port": null,
10+
"documentation": "https://docs.netbird.io/",
11+
"website": "https://netbird.io/",
12+
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/netbird.svg",
13+
"description": "NetBird combines a configuration-free peer-to-peer private network and a centralized access control system in a single platform, making it easy to create secure private networks for your organization or home.",
14+
"install_methods": [
15+
{
16+
"type": "default",
17+
"script": "tools/addon/add-netbird-lxc.sh",
18+
"resources": {
19+
"cpu": null,
20+
"ram": null,
21+
"hdd": null,
22+
"os": null,
23+
"version": null
24+
}
25+
}
26+
],
27+
"default_credentials": {
28+
"username": null,
29+
"password": null
30+
},
31+
"notes": [
32+
{
33+
"text": "After the script finishes, reboot the LXC then run `netbird up` in the LXC console",
34+
"type": "info"
3235
},
33-
"notes": [
34-
{
35-
"text": "After the script finishes, reboot the LXC then run `netbird up` in the LXC console",
36-
"type": "info"
37-
},
38-
{
39-
"text": "Execute within the Proxmox main shell",
40-
"type": "info"
41-
},
42-
{
43-
"text": "The script only works in Debian/Ubuntu, not in Alpine!",
44-
"type": "warning"
45-
}
46-
]
36+
{
37+
"text": "Execute within the Proxmox main shell",
38+
"type": "info"
39+
},
40+
{
41+
"text": "The script only works in Debian/Ubuntu, not in Alpine!",
42+
"type": "warning"
43+
}
44+
]
4745
}
Lines changed: 42 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,45 @@
11
{
2-
"name": "Tailscale",
3-
"slug": "add-tailscale-lxc",
4-
"categories": [
5-
1
6-
],
7-
"date_created": "2024-05-02",
8-
"type": "misc",
9-
"updateable": false,
10-
"privileged": false,
11-
"interface_port": null,
12-
"documentation": null,
13-
"website": "https://tailscale.com/",
14-
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/tailscale.svg",
15-
"description": "Tailscale is a software-defined networking solution that enables secure communication between devices over the internet. It creates a virtual private network (VPN) that enables devices to communicate with each other as if they were on the same local network. Tailscale works even when the devices are separated by firewalls or subnets, and provides secure and encrypted communication between devices. With Tailscale, users can connect devices, servers, computers, and cloud instances to create a secure network, making it easier to manage and control access to resources. Tailscale is designed to be easy to set up and use, providing a streamlined solution for secure communication between devices over the internet.",
16-
"install_methods": [
17-
{
18-
"type": "default",
19-
"script": "misc/add-tailscale-lxc.sh",
20-
"resources": {
21-
"cpu": null,
22-
"ram": null,
23-
"hdd": null,
24-
"os": null,
25-
"version": null
26-
}
27-
}
28-
],
29-
"default_credentials": {
30-
"username": null,
31-
"password": null
2+
"name": "Tailscale",
3+
"slug": "add-tailscale-lxc",
4+
"categories": [1],
5+
"date_created": "2024-05-02",
6+
"type": "addon",
7+
"updateable": false,
8+
"privileged": false,
9+
"interface_port": null,
10+
"documentation": null,
11+
"website": "https://tailscale.com/",
12+
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/tailscale.svg",
13+
"description": "Tailscale is a software-defined networking solution that enables secure communication between devices over the internet. It creates a virtual private network (VPN) that enables devices to communicate with each other as if they were on the same local network. Tailscale works even when the devices are separated by firewalls or subnets, and provides secure and encrypted communication between devices. With Tailscale, users can connect devices, servers, computers, and cloud instances to create a secure network, making it easier to manage and control access to resources. Tailscale is designed to be easy to set up and use, providing a streamlined solution for secure communication between devices over the internet.",
14+
"install_methods": [
15+
{
16+
"type": "default",
17+
"script": "tools/addon/add-tailscale-lxc.sh",
18+
"resources": {
19+
"cpu": null,
20+
"ram": null,
21+
"hdd": null,
22+
"os": null,
23+
"version": null
24+
}
25+
}
26+
],
27+
"default_credentials": {
28+
"username": null,
29+
"password": null
30+
},
31+
"notes": [
32+
{
33+
"text": "Only supported on Debian 12 LXCs",
34+
"type": "warning"
3235
},
33-
"notes": [
34-
{
35-
"text": "Only supported on Debian 12 LXCs",
36-
"type": "warning"
37-
},
38-
{
39-
"text": "After the script finishes, reboot the LXC then run `tailscale up` in the LXC console",
40-
"type": "info"
41-
},
42-
{
43-
"text": "Execute within the Proxmox shell",
44-
"type": "info"
45-
}
46-
]
36+
{
37+
"text": "After the script finishes, reboot the LXC then run `tailscale up` in the LXC console",
38+
"type": "info"
39+
},
40+
{
41+
"text": "Execute within the Proxmox shell",
42+
"type": "info"
43+
}
44+
]
4745
}
Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
11
{
2-
"name": "All Templates",
3-
"slug": "all-templates",
4-
"categories": [
5-
1
6-
],
7-
"date_created": "2024-05-02",
8-
"type": "misc",
9-
"updateable": false,
10-
"privileged": false,
11-
"interface_port": null,
12-
"documentation": null,
13-
"website": null,
14-
"logo": "https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/assets/proxmox.svg",
15-
"description": "A script designed to allow for the creation of one of the many free LXC templates. Great for creating system LXCs.\r\nThe script creates a `*.creds` file in the Proxmox root directory with the password of the newly created LXC.\r\nPlease take note that if you plan to use this script for creating TurnKey LXCs, you'll need to modify the hostname after creation.",
16-
"install_methods": [
17-
{
18-
"type": "default",
19-
"script": "misc/all-templates.sh",
20-
"resources": {
21-
"cpu": null,
22-
"ram": null,
23-
"hdd": null,
24-
"os": null,
25-
"version": null
26-
}
27-
}
28-
],
29-
"default_credentials": {
30-
"username": null,
31-
"password": null
32-
},
33-
"notes": [
34-
{
35-
"text": "Resource and network settings are adjustable post LXC creation.",
36-
"type": "info"
37-
}
38-
]
39-
}
2+
"name": "All Templates",
3+
"slug": "all-templates",
4+
"categories": [1],
5+
"date_created": "2024-05-02",
6+
"type": "addon",
7+
"updateable": false,
8+
"privileged": false,
9+
"interface_port": null,
10+
"documentation": null,
11+
"website": null,
12+
"logo": "https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/assets/proxmox.svg",
13+
"description": "A script designed to allow for the creation of one of the many free LXC templates. Great for creating system LXCs.\r\nThe script creates a `*.creds` file in the Proxmox root directory with the password of the newly created LXC.\r\nPlease take note that if you plan to use this script for creating TurnKey LXCs, you'll need to modify the hostname after creation.",
14+
"install_methods": [
15+
{
16+
"type": "default",
17+
"script": "tools/addon/all-templates.sh",
18+
"resources": {
19+
"cpu": null,
20+
"ram": null,
21+
"hdd": null,
22+
"os": null,
23+
"version": null
24+
}
25+
}
26+
],
27+
"default_credentials": {
28+
"username": null,
29+
"password": null
30+
},
31+
"notes": [
32+
{
33+
"text": "Resource and network settings are adjustable post LXC creation.",
34+
"type": "info"
35+
}
36+
]
37+
}

0 commit comments

Comments
 (0)