cyberia 2.95.8 → 2.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +1 -2
- package/.env.development +0 -3
- package/.env.production +0 -3
- package/.env.test +0 -3
- package/.github/workflows/engine-cyberia.ci.yml +1 -1
- package/.prettierignore +1 -2
- package/baremetal/commission-workflows.json +121 -0
- package/baremetal/packer-workflows.json +24 -0
- package/bin/deploy.js +1 -1
- package/cli.md +105 -71
- package/conf.js +9 -1
- package/deployment.yaml +4 -4
- package/manifests/deployment/dd-default-development/deployment.yaml +2 -2
- package/manifests/deployment/dd-test-development/deployment.yaml +4 -4
- package/package.json +3 -2
- package/packer/images/Rocky9Amd64/Makefile +62 -0
- package/packer/images/Rocky9Amd64/QUICKSTART.md +113 -0
- package/packer/images/Rocky9Amd64/README.md +122 -0
- package/packer/images/Rocky9Amd64/http/rocky9.ks.pkrtpl.hcl +114 -0
- package/packer/images/Rocky9Amd64/rocky9.pkr.hcl +164 -0
- package/packer/images/Rocky9Arm64/Makefile +69 -0
- package/packer/images/Rocky9Arm64/README.md +122 -0
- package/packer/images/Rocky9Arm64/http/rocky9.ks.pkrtpl.hcl +114 -0
- package/packer/images/Rocky9Arm64/rocky9.pkr.hcl +171 -0
- package/packer/scripts/fuse-nbd +64 -0
- package/packer/scripts/fuse-tar-root +63 -0
- package/scripts/disk-clean.sh +128 -187
- package/scripts/gpu-diag.sh +2 -2
- package/scripts/ip-info.sh +11 -11
- package/scripts/ipxe-setup.sh +197 -0
- package/scripts/maas-setup.sh +13 -2
- package/scripts/maas-upload-boot-resource.sh +183 -0
- package/scripts/nvim.sh +1 -1
- package/scripts/packer-init-vars-file.sh +40 -0
- package/scripts/packer-setup.sh +289 -0
- package/scripts/ports-ls.sh +31 -0
- package/scripts/quick-tftp.sh +19 -0
- package/scripts/rocky-pwa.sh +200 -0
- package/scripts/rocky-setup.sh +2 -2
- package/scripts/rpmfusion-ffmpeg-setup.sh +4 -4
- package/scripts/ssl.sh +7 -7
- package/src/api/core/core.service.js +0 -5
- package/src/api/default/default.service.js +7 -5
- package/src/api/document/document.controller.js +15 -0
- package/src/api/document/document.model.js +44 -1
- package/src/api/document/document.router.js +7 -0
- package/src/api/document/document.service.js +463 -43
- package/src/api/file/file.model.js +112 -4
- package/src/api/file/file.ref.json +42 -0
- package/src/api/file/file.service.js +380 -32
- package/src/api/instance/instance.service.js +15 -10
- package/src/api/object-layer/object-layer.service.js +4 -19
- package/src/api/user/user.model.js +38 -1
- package/src/api/user/user.router.js +96 -63
- package/src/api/user/user.service.js +81 -48
- package/src/cli/baremetal.js +2383 -558
- package/src/cli/cloud-init.js +355 -232
- package/src/cli/cluster.js +51 -53
- package/src/cli/db.js +440 -160
- package/src/cli/deploy.js +7 -3
- package/src/cli/env.js +24 -3
- package/src/cli/image.js +1 -0
- package/src/cli/index.js +67 -37
- package/src/cli/lxd.js +3 -3
- package/src/cli/repository.js +164 -0
- package/src/cli/run.js +79 -12
- package/src/cli/ssh.js +11 -11
- package/src/client/Itemledger.index.js +962 -2
- package/src/client/components/core/Account.js +327 -36
- package/src/client/components/core/AgGrid.js +3 -0
- package/src/client/components/core/Auth.js +11 -3
- package/src/client/components/core/Chat.js +2 -2
- package/src/client/components/core/Content.js +161 -80
- package/src/client/components/core/Css.js +46 -2
- package/src/client/components/core/CssCore.js +16 -12
- package/src/client/components/core/FileExplorer.js +813 -49
- package/src/client/components/core/Input.js +210 -13
- package/src/client/components/core/LogIn.js +42 -20
- package/src/client/components/core/Modal.js +257 -177
- package/src/client/components/core/Panel.js +476 -32
- package/src/client/components/core/PanelForm.js +478 -108
- package/src/client/components/core/PublicProfile.js +888 -0
- package/src/client/components/core/Responsive.js +15 -7
- package/src/client/components/core/Router.js +117 -15
- package/src/client/components/core/SearchBox.js +1007 -0
- package/src/client/components/core/SignUp.js +26 -7
- package/src/client/components/core/SocketIo.js +6 -3
- package/src/client/components/core/Translate.js +159 -0
- package/src/client/components/core/Validator.js +15 -0
- package/src/client/components/core/windowGetDimensions.js +6 -6
- package/src/client/components/cyberia/CssCyberia.js +10 -4
- package/src/client/components/cyberia-portal/CssCyberiaPortal.js +3 -0
- package/src/client/components/default/MenuDefault.js +59 -12
- package/src/client/components/default/RoutesDefault.js +1 -0
- package/src/client/services/core/core.service.js +163 -1
- package/src/client/services/default/default.management.js +454 -76
- package/src/client/services/default/default.service.js +13 -6
- package/src/client/services/document/document.service.js +42 -0
- package/src/client/services/file/file.service.js +43 -16
- package/src/client/services/instance/instance.service.js +20 -5
- package/src/client/services/object-layer/object-layer.service.js +4 -5
- package/src/client/services/user/user.service.js +13 -9
- package/src/client/sw/default.sw.js +107 -184
- package/src/db/DataBaseProvider.js +1 -1
- package/src/db/mongo/MongooseDB.js +1 -1
- package/src/index.js +2 -1
- package/src/mailer/MailerProvider.js +4 -4
- package/src/runtime/express/Express.js +2 -1
- package/src/runtime/lampp/Lampp.js +2 -2
- package/src/server/auth.js +3 -6
- package/src/server/data-query.js +449 -0
- package/src/server/dns.js +12 -6
- package/src/server/object-layer.js +0 -3
- package/src/server/start.js +14 -6
- package/src/ws/IoInterface.js +2 -2
- package/manifests/mariadb/config.yaml +0 -10
- package/manifests/mariadb/secret.yaml +0 -8
- package/src/client/ssr/pages/404.js +0 -12
- package/src/client/ssr/pages/500.js +0 -12
- package/src/client/ssr/pages/maintenance.js +0 -14
- package/src/client/ssr/pages/offline.js +0 -21
package/.dockerignore
CHANGED
package/.env.development
CHANGED
|
@@ -35,12 +35,9 @@ MAAS_ADMIN_EMAIL=admin@default.net
|
|
|
35
35
|
MAAS_ADMIN_PASS=changethis
|
|
36
36
|
TFTP_ROOT=changethis
|
|
37
37
|
NETMASK=255.255.255.0
|
|
38
|
-
RPI4_INTERFACE_NAME=changethis
|
|
39
|
-
RPI4_IP=192.168.1.192
|
|
40
38
|
MAAS_DNS=8.8.8.8
|
|
41
39
|
MAAS_NTP_SERVER=changethis
|
|
42
40
|
NFS_EXPORT_PATH=changethis
|
|
43
|
-
RPI4_MAC_ADDRESS=changethis
|
|
44
41
|
NVIDIA_API_KEY=changethis
|
|
45
42
|
DEFAULT_ADMIN_EMAIL=admin@default.net
|
|
46
43
|
DEFAULT_ADMIN_PASSWORD=changethis
|
package/.env.production
CHANGED
|
@@ -36,12 +36,9 @@ MAAS_ADMIN_EMAIL=admin@default.net
|
|
|
36
36
|
MAAS_ADMIN_PASS=changethis
|
|
37
37
|
TFTP_ROOT=changethis
|
|
38
38
|
NETMASK=255.255.255.0
|
|
39
|
-
RPI4_INTERFACE_NAME=changethis
|
|
40
|
-
RPI4_IP=192.168.1.192
|
|
41
39
|
MAAS_DNS=8.8.8.8
|
|
42
40
|
MAAS_NTP_SERVER=changethis
|
|
43
41
|
NFS_EXPORT_PATH=changethis
|
|
44
|
-
RPI4_MAC_ADDRESS=changethis
|
|
45
42
|
NVIDIA_API_KEY=changethis
|
|
46
43
|
DEFAULT_ADMIN_EMAIL=admin@default.net
|
|
47
44
|
DEFAULT_ADMIN_PASSWORD=changethis
|
package/.env.test
CHANGED
|
@@ -35,12 +35,9 @@ MAAS_ADMIN_EMAIL=admin@default.net
|
|
|
35
35
|
MAAS_ADMIN_PASS=changethis
|
|
36
36
|
TFTP_ROOT=changethis
|
|
37
37
|
NETMASK=255.255.255.0
|
|
38
|
-
RPI4_INTERFACE_NAME=changethis
|
|
39
|
-
RPI4_IP=192.168.1.192
|
|
40
38
|
MAAS_DNS=8.8.8.8
|
|
41
39
|
MAAS_NTP_SERVER=changethis
|
|
42
40
|
NFS_EXPORT_PATH=changethis
|
|
43
|
-
RPI4_MAC_ADDRESS=changethis
|
|
44
41
|
NVIDIA_API_KEY=changethis
|
|
45
42
|
DEFAULT_ADMIN_EMAIL=admin@default.net
|
|
46
43
|
DEFAULT_ADMIN_PASSWORD=changethis
|
|
@@ -13,7 +13,7 @@ jobs:
|
|
|
13
13
|
# if: github.repository == 'underpostnet/engine' && startsWith(github.event.head_commit.message, 'ci(engine-cyberia-repo-build)')
|
|
14
14
|
name: Update github repo package Jobs
|
|
15
15
|
env:
|
|
16
|
-
SYNC: ${{ startsWith(github.event.workflow_run.head_commit.message, 'ci(package-pwa-microservices-template-sync-
|
|
16
|
+
SYNC: ${{ startsWith(github.event.workflow_run.head_commit.message, 'ci(package-pwa-microservices-template-sync-engine-cyberia)') }}
|
|
17
17
|
runs-on: ubuntu-latest
|
|
18
18
|
container:
|
|
19
19
|
image: quay.io/rockylinux/rockylinux:9
|
package/.prettierignore
CHANGED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rpi4mbarm64-iso-ram": {
|
|
3
|
+
"type": "iso-ram",
|
|
4
|
+
"osIdLike": "debian ubuntu",
|
|
5
|
+
"isoUrl": "https://cdimage.ubuntu.com/releases/24.04/release/ubuntu-24.04.3-live-server-arm64.iso",
|
|
6
|
+
"tftpPrefix": "rpi4mb",
|
|
7
|
+
"bootstrapHttpServerPort": 8888,
|
|
8
|
+
"menuentryStr": "UNDERPOST.NET UEFI/GRUB/MAAS RPi4 ISO-RAM commissioning (ARM64)",
|
|
9
|
+
"networkInterfaceName": "enabcm6e4ei0",
|
|
10
|
+
"chronyc": {
|
|
11
|
+
"timezone": "America/Santiago",
|
|
12
|
+
"chronyConfPath": "/etc/chrony/chrony.conf"
|
|
13
|
+
},
|
|
14
|
+
"firmwares": [
|
|
15
|
+
{
|
|
16
|
+
"url": "https://github.com/pftf/RPi4/releases/download/v1.41/RPi4_UEFI_Firmware_v1.41.zip",
|
|
17
|
+
"gateway": "192.168.1.1",
|
|
18
|
+
"subnet": "255.255.255.0"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"maas": {
|
|
22
|
+
"commissioning": {
|
|
23
|
+
"architecture": "arm64/hwe-24.04-edge",
|
|
24
|
+
"name": "ubuntu/noble"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"keyboard": {
|
|
28
|
+
"layout": "es"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"rpi4mbarm64-chroot": {
|
|
32
|
+
"type": "chroot-debootstrap",
|
|
33
|
+
"osIdLike": "debian ubuntu",
|
|
34
|
+
"tftpPrefix": "rpi4mb",
|
|
35
|
+
"bootstrapHttpServerPort": 8888,
|
|
36
|
+
"menuentryStr": "UNDERPOST.NET UEFI/GRUB/MAAS RPi4 CHROOT commissioning (ARM64)",
|
|
37
|
+
"networkInterfaceName": "enabcm6e4ei0",
|
|
38
|
+
"firmwares": [
|
|
39
|
+
{
|
|
40
|
+
"url": "https://github.com/pftf/RPi4/releases/download/v1.41/RPi4_UEFI_Firmware_v1.41.zip",
|
|
41
|
+
"gateway": "192.168.1.1",
|
|
42
|
+
"subnet": "255.255.255.0"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"chronyc": {
|
|
46
|
+
"timezone": "America/Santiago",
|
|
47
|
+
"chronyConfPath": "/etc/chrony/chrony.conf"
|
|
48
|
+
},
|
|
49
|
+
"debootstrap": {
|
|
50
|
+
"image": {
|
|
51
|
+
"architecture": "arm64",
|
|
52
|
+
"name": "noble"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"maas": {
|
|
56
|
+
"commissioning": {
|
|
57
|
+
"architecture": "arm64/ga-24.04",
|
|
58
|
+
"name": "ubuntu/noble"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"keyboard": {
|
|
62
|
+
"layout": "es"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"rpi4mbarm64-iso-nfs": {
|
|
66
|
+
"type": "iso-nfs",
|
|
67
|
+
"osIdLike": "debian ubuntu",
|
|
68
|
+
"isoUrl": "https://cdimage.ubuntu.com/releases/24.04/release/ubuntu-24.04.3-live-server-arm64.iso",
|
|
69
|
+
"tftpPrefix": "rpi4mb",
|
|
70
|
+
"bootstrapHttpServerPort": 8888,
|
|
71
|
+
"menuentryStr": "UNDERPOST.NET UEFI/GRUB/MAAS RPi4 ISO-NFS commissioning (ARM64)",
|
|
72
|
+
"networkInterfaceName": "enabcm6e4ei0",
|
|
73
|
+
"chronyc": {
|
|
74
|
+
"timezone": "America/Santiago",
|
|
75
|
+
"chronyConfPath": "/etc/chrony/chrony.conf"
|
|
76
|
+
},
|
|
77
|
+
"firmwares": [
|
|
78
|
+
{
|
|
79
|
+
"url": "https://github.com/pftf/RPi4/releases/download/v1.41/RPi4_UEFI_Firmware_v1.41.zip",
|
|
80
|
+
"gateway": "192.168.1.1",
|
|
81
|
+
"subnet": "255.255.255.0"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"maas": {
|
|
85
|
+
"commissioning": {
|
|
86
|
+
"architecture": "arm64/hwe-24.04-edge",
|
|
87
|
+
"name": "ubuntu/noble"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"keyboard": {
|
|
91
|
+
"layout": "es"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"rpi4mbarm64-chroot-rocky9": {
|
|
95
|
+
"type": "chroot-container",
|
|
96
|
+
"osIdLike": "rhel centos fedora",
|
|
97
|
+
"tftpPrefix": "rpi4mb",
|
|
98
|
+
"bootstrapHttpServerPort": 8888,
|
|
99
|
+
"menuentryStr": "UNDERPOST.NET Rocky9 Container CHROOT NFS (ARM64)",
|
|
100
|
+
"networkInterfaceName": "eth0",
|
|
101
|
+
"firmwares": [
|
|
102
|
+
{
|
|
103
|
+
"url": "https://github.com/pftf/RPi4/releases/download/v1.41/RPi4_UEFI_Firmware_v1.41.zip",
|
|
104
|
+
"gateway": "192.168.1.1",
|
|
105
|
+
"subnet": "255.255.255.0"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"chronyc": {
|
|
109
|
+
"timezone": "America/Santiago",
|
|
110
|
+
"chronyConfPath": "/etc/chrony/chrony.conf"
|
|
111
|
+
},
|
|
112
|
+
"container": {
|
|
113
|
+
"image": "quay.io/rockylinux/rockylinux:9",
|
|
114
|
+
"architecture": "arm64",
|
|
115
|
+
"packages": ["kernel", "chrony", "kbd", "glibc-langpack-en", "glibc-langpack-es", "tzdata"]
|
|
116
|
+
},
|
|
117
|
+
"keyboard": {
|
|
118
|
+
"layout": "es"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Rocky9Amd64": {
|
|
3
|
+
"dir": "packer/images/Rocky9Amd64",
|
|
4
|
+
"maas": {
|
|
5
|
+
"name": "custom/rocky9",
|
|
6
|
+
"title": "Rocky 9 Custom",
|
|
7
|
+
"architecture": "amd64/generic",
|
|
8
|
+
"base_image": "rhel/9",
|
|
9
|
+
"filetype": "tgz",
|
|
10
|
+
"content": "rocky9.tar.gz"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"Rocky9Arm64": {
|
|
14
|
+
"dir": "packer/images/Rocky9Arm64",
|
|
15
|
+
"maas": {
|
|
16
|
+
"name": "custom/rocky9-arm64",
|
|
17
|
+
"title": "Rocky 9 Arm64 Custom",
|
|
18
|
+
"architecture": "arm64/generic",
|
|
19
|
+
"base_image": "rhel/9",
|
|
20
|
+
"filetype": "tgz",
|
|
21
|
+
"content": "rocky9.tar.gz"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
package/bin/deploy.js
CHANGED
|
@@ -658,7 +658,7 @@ ${shellExec(`git log | grep Author: | sort -u`, { stdout: true }).split(`\n`).jo
|
|
|
658
658
|
|
|
659
659
|
// Remove PostgreSQL 17 packages and repo
|
|
660
660
|
shellExec(`sudo dnf remove -y postgresql17 postgresql17-server postgresql17-contrib`);
|
|
661
|
-
shellExec(`sudo rpm -e pgdg-redhat-repo-$(rpm -q pgdg-redhat-repo --qf '%{VERSION}-%{RELEASE}')
|
|
661
|
+
shellExec(`sudo rpm -e pgdg-redhat-repo-$(rpm -q pgdg-redhat-repo --qf '%{VERSION}-%{RELEASE}')`);
|
|
662
662
|
shellExec(`sudo rm -f /etc/yum.repos.d/pgdg-redhat-*.repo`);
|
|
663
663
|
|
|
664
664
|
// Clean up data, logs, config, and the postgres user
|
package/cli.md
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
## underpost ci/cd cli v2.
|
|
1
|
+
## underpost ci/cd cli v2.98.0
|
|
2
2
|
|
|
3
3
|
### Usage: `underpost [options] [command]`
|
|
4
4
|
```
|
|
5
5
|
Options:
|
|
6
|
-
-V, --version
|
|
7
|
-
-h, --help
|
|
6
|
+
-V, --version output the version number
|
|
7
|
+
-h, --help display help for command
|
|
8
8
|
|
|
9
9
|
Commands:
|
|
10
|
-
new [options] [app-name]
|
|
11
|
-
start [options] <deploy-id> [env]
|
|
12
|
-
clone [options] <uri>
|
|
13
|
-
pull [options] <path> <uri>
|
|
14
|
-
cmt [options] [path] [commit-type] [module-tag] [message]
|
|
15
|
-
push [options] <path> <uri>
|
|
16
|
-
env [deploy-id] [env] [subConf]
|
|
17
|
-
static [options]
|
|
18
|
-
config [options] <operator> [key] [value]
|
|
19
|
-
root
|
|
20
|
-
ip [options] [ips]
|
|
21
|
-
cluster [options] [pod-name]
|
|
22
|
-
deploy [options] [deploy-list] [env]
|
|
23
|
-
secret [options] <platform>
|
|
24
|
-
image [options]
|
|
25
|
-
install
|
|
26
|
-
db [options]
|
|
27
|
-
metadata [options] [deploy-id] [host] [path]
|
|
28
|
-
script [options] <operator> <script-name> [script-value]
|
|
29
|
-
cron [options] [deploy-list] [job-list]
|
|
30
|
-
fs [options] [path]
|
|
31
|
-
test [options] [deploy-list]
|
|
32
|
-
monitor [options] <deploy-id> [env]
|
|
10
|
+
new [options] [app-name] Initializes a new Underpost project, service, or configuration.
|
|
11
|
+
start [options] <deploy-id> [env] Initiates application servers, build pipelines, or other defined services based on the deployment ID.
|
|
12
|
+
clone [options] <uri> Clones a specified GitHub repository into the current directory.
|
|
13
|
+
pull [options] <path> <uri> Pulls the latest changes from a specified GitHub repository.
|
|
14
|
+
cmt [options] [path] [commit-type] [module-tag] [message] Manages commits to a GitHub repository, supporting various commit types and options.
|
|
15
|
+
push [options] <path> <uri> Pushes committed changes from a local repository to a remote GitHub repository.
|
|
16
|
+
env [deploy-id] [env] [subConf] Sets environment variables and configurations related to a specific deployment ID.
|
|
17
|
+
static [options] Manages static build of page, bundles, and documentation with comprehensive customization options.
|
|
18
|
+
config [options] <operator> [key] [value] Manages Underpost configurations using various operators.
|
|
19
|
+
root Displays the root path of the npm installation.
|
|
20
|
+
ip [options] [ips] Displays the current public machine IP addresses.
|
|
21
|
+
cluster [options] [pod-name] Manages Kubernetes clusters, defaulting to Kind cluster initialization.
|
|
22
|
+
deploy [options] [deploy-list] [env] Manages application deployments, defaulting to deploying development pods.
|
|
23
|
+
secret [options] <platform> Manages secrets for various platforms.
|
|
24
|
+
image [options] Manages Docker images, including building, saving, and loading into Kubernetes clusters.
|
|
25
|
+
install Quickly imports Underpost npm dependencies by copying them.
|
|
26
|
+
db [options] [deploy-list] Manages database operations with support for MariaDB and MongoDB, including import/export, multi-pod targeting, and Git integration.
|
|
27
|
+
metadata [options] [deploy-id] [host] [path] Manages cluster metadata operations, including import and export.
|
|
28
|
+
script [options] <operator> <script-name> [script-value] Supports a variety of built-in Underpost global scripts, their preset lifecycle events, and arbitrary custom scripts.
|
|
29
|
+
cron [options] [deploy-list] [job-list] Manages cron jobs, including initialization, execution, and configuration updates.
|
|
30
|
+
fs [options] [path] Manages file storage, defaulting to file upload operations.
|
|
31
|
+
test [options] [deploy-list] Manages and runs tests, defaulting to the current Underpost default test suite.
|
|
32
|
+
monitor [options] <deploy-id> [env] Manages health server monitoring for specified deployments.
|
|
33
33
|
ssh [options]
|
|
34
|
-
run [options] <runner-id> [path]
|
|
35
|
-
lxd [options]
|
|
36
|
-
baremetal [options] [workflow-id] [hostname] [ip-
|
|
37
|
-
help [command]
|
|
34
|
+
run [options] <runner-id> [path] Runs specified scripts using various runners.
|
|
35
|
+
lxd [options] Manages LXD containers and virtual machines.
|
|
36
|
+
baremetal [options] [workflow-id] [ip-address] [hostname] [ip-file-server] [ip-config] [netmask] [dns-server] Manages baremetal server operations, including installation, database setup, commissioning, and user management.
|
|
37
|
+
help [command] display help for command
|
|
38
38
|
|
|
39
39
|
```
|
|
40
40
|
|
|
@@ -51,7 +51,7 @@ Arguments:
|
|
|
51
51
|
app-name The name of the new project.
|
|
52
52
|
|
|
53
53
|
Options:
|
|
54
|
-
--deploy-id <deploy-id>
|
|
54
|
+
--deploy-id <deploy-id> Create deploy ID conf env files
|
|
55
55
|
--sub-conf <sub-conf> Create sub conf env files
|
|
56
56
|
--cluster Create deploy ID cluster files and sync to
|
|
57
57
|
current cluster
|
|
@@ -82,14 +82,20 @@ Initiates application servers, build pipelines, or other defined services based
|
|
|
82
82
|
on the deployment ID.
|
|
83
83
|
|
|
84
84
|
Arguments:
|
|
85
|
-
deploy-id
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
deploy-id The unique identifier for the deployment
|
|
86
|
+
configuration.
|
|
87
|
+
env Optional: The environment to start (e.g.,
|
|
88
|
+
"development", "production"). Defaults to
|
|
89
|
+
"development".
|
|
88
90
|
|
|
89
91
|
Options:
|
|
90
|
-
--run
|
|
91
|
-
|
|
92
|
-
|
|
92
|
+
--run Starts application servers and monitors their
|
|
93
|
+
health.
|
|
94
|
+
--build Triggers the client-side application build
|
|
95
|
+
process.
|
|
96
|
+
--underpost-quickly-install Uses Underpost Quickly Install for dependency
|
|
97
|
+
installation.
|
|
98
|
+
-h, --help display help for command
|
|
93
99
|
|
|
94
100
|
```
|
|
95
101
|
|
|
@@ -268,14 +274,16 @@ Options:
|
|
|
268
274
|
Manages Underpost configurations using various operators.
|
|
269
275
|
|
|
270
276
|
Arguments:
|
|
271
|
-
operator
|
|
272
|
-
|
|
273
|
-
key
|
|
274
|
-
value
|
|
277
|
+
operator The configuration operation to perform. Options: set,
|
|
278
|
+
delete, get, list, clean.
|
|
279
|
+
key Optional: The specific configuration key to manage.
|
|
280
|
+
value Optional: The value to set for the configuration key.
|
|
275
281
|
|
|
276
282
|
Options:
|
|
277
|
-
--plain
|
|
278
|
-
|
|
283
|
+
--plain Prints the configuration value in plain text.
|
|
284
|
+
--filter <keyword> Filters the list by matching key or value (only for list
|
|
285
|
+
operation).
|
|
286
|
+
-h, --help display help for command
|
|
279
287
|
|
|
280
288
|
```
|
|
281
289
|
|
|
@@ -302,6 +310,8 @@ Arguments:
|
|
|
302
310
|
ips Optional args comma-separated list of IP to process.
|
|
303
311
|
|
|
304
312
|
Options:
|
|
313
|
+
--dhcp Fetches and displays the current Dynamic Host
|
|
314
|
+
Configuration Protocol server IP address.
|
|
305
315
|
--copy Copies the IP addresses to the clipboard.
|
|
306
316
|
--ban-ingress-add Adds IP addresses to banned ingress list.
|
|
307
317
|
--ban-ingress-remove Removes IP addresses from banned ingress list.
|
|
@@ -459,6 +469,8 @@ Options:
|
|
|
459
469
|
deployment operations.
|
|
460
470
|
--port <port> Sets up port forwarding from local to
|
|
461
471
|
remote ports.
|
|
472
|
+
--cmd <cmd> Custom initialization command for
|
|
473
|
+
deployment (comma-separated commands).
|
|
462
474
|
-h, --help display help for command
|
|
463
475
|
|
|
464
476
|
```
|
|
@@ -551,7 +563,7 @@ Options:
|
|
|
551
563
|
|
|
552
564
|
### `db` :
|
|
553
565
|
```
|
|
554
|
-
Usage: underpost db [options]
|
|
566
|
+
Usage: underpost db [options] [deploy-list]
|
|
555
567
|
|
|
556
568
|
Manages database operations with support for MariaDB and MongoDB, including
|
|
557
569
|
import/export, multi-pod targeting, and Git integration.
|
|
@@ -565,6 +577,7 @@ Options:
|
|
|
565
577
|
--pod-name <pod-name> Comma-separated list of pod names or patterns (supports wildcards like "mariadb-*").
|
|
566
578
|
--all-pods Target all matching pods instead of just the first one.
|
|
567
579
|
--primary-pod Automatically detect and use MongoDB primary pod (MongoDB only).
|
|
580
|
+
--primary-pod-ensure <pod-name> Ensure setup of MongoDB replica set primary pod before operations.
|
|
568
581
|
--stats Display database statistics (collection/table names with document/row counts).
|
|
569
582
|
--collections <collections> Comma-separated list of database collections to operate on.
|
|
570
583
|
--out-path <out-path> Specifies a custom output path for backups.
|
|
@@ -576,6 +589,12 @@ Options:
|
|
|
576
589
|
--paths <paths> Comma-separated list of paths to filter database operations.
|
|
577
590
|
--ns <ns-name> Kubernetes namespace context for database operations (defaults to "default").
|
|
578
591
|
--macro-rollback-export <n-commits-reset> Exports a macro rollback script that reverts the last n commits (Git integration required).
|
|
592
|
+
--clean-fs-collection Cleans orphaned File documents from collections that are not referenced by any models.
|
|
593
|
+
--clean-fs-dry-run Dry run mode - shows what would be deleted without actually deleting (use with --clean-fs-collection).
|
|
594
|
+
--dev Sets the development cli context
|
|
595
|
+
--kubeadm Enables the kubeadm context for database operations.
|
|
596
|
+
--kind Enables the kind context for database operations.
|
|
597
|
+
--k3s Enables the k3s context for database operations.
|
|
579
598
|
-h, --help display help for command
|
|
580
599
|
|
|
581
600
|
```
|
|
@@ -783,11 +802,11 @@ Options:
|
|
|
783
802
|
Runs specified scripts using various runners.
|
|
784
803
|
|
|
785
804
|
Arguments:
|
|
786
|
-
runner-id The runner ID to run. Options: spark-template, rmi, kill, secret, underpost-config, gpu-env, tf-gpu-test, dev-cluster, metadata, svc-ls, svc-rm, ssh-cluster-info, dev-hosts-expose, dev-hosts-restore, cluster-build, template-deploy, template-deploy-image, clean, pull, release-deploy, ssh-deploy, ide, sync, stop, ssh-deploy-stop, tz, cron, get-proxy, instance-promote, instance, ls-deployments, host-update, dd-container, ip-info, monitor, db-client, git-conf, promote, metrics, cluster, deploy, disk-clean, disk-usage, dev, service, sh, log, release-cmt, sync-replica, tf-vae-test, deploy-job.
|
|
805
|
+
runner-id The runner ID to run. Options: spark-template, rmi, kill, secret, underpost-config, gpu-env, tf-gpu-test, dev-cluster, metadata, svc-ls, svc-rm, ssh-cluster-info, dev-hosts-expose, dev-hosts-restore, cluster-build, template-deploy, template-deploy-image, clean, pull, release-deploy, ssh-deploy, ide, sync, stop, ssh-deploy-stop, tz, cron, get-proxy, instance-promote, instance, ls-deployments, host-update, dd-container, ip-info, monitor, db-client, git-conf, promote, metrics, cluster, deploy, disk-clean, disk-usage, dev, service, sh, log, ps, ptls, release-cmt, deploy-test, sync-replica, tf-vae-test, deploy-job.
|
|
787
806
|
path The input value, identifier, or path for the operation.
|
|
788
807
|
|
|
789
808
|
Options:
|
|
790
|
-
--
|
|
809
|
+
--cmd <command-list> Comma-separated list of commands to execute.
|
|
791
810
|
--args <args-array> Array of arguments to pass to the command.
|
|
792
811
|
--dev Sets the development context environment for the script.
|
|
793
812
|
--build Set builder context runner
|
|
@@ -835,6 +854,7 @@ Options:
|
|
|
835
854
|
--user <user> Sets user context for the runner execution.
|
|
836
855
|
--hosts <hosts> Comma-separated list of hosts for the runner execution.
|
|
837
856
|
--instance-id <instance-id> Sets instance id context for the runner execution.
|
|
857
|
+
--pid <process-id> Sets process id context for the runner execution.
|
|
838
858
|
-h, --help display help for command
|
|
839
859
|
|
|
840
860
|
```
|
|
@@ -892,36 +912,50 @@ Options:
|
|
|
892
912
|
|
|
893
913
|
### `baremetal` :
|
|
894
914
|
```
|
|
895
|
-
Usage: underpost baremetal [options] [workflow-id] [hostname] [ip-
|
|
915
|
+
Usage: underpost baremetal [options] [workflow-id] [ip-address] [hostname] [ip-file-server] [ip-config] [netmask] [dns-server]
|
|
896
916
|
|
|
897
917
|
Manages baremetal server operations, including installation, database setup,
|
|
898
918
|
commissioning, and user management.
|
|
899
919
|
|
|
900
920
|
Options:
|
|
901
|
-
--control-server-install
|
|
902
|
-
--control-server-uninstall
|
|
903
|
-
--control-server-
|
|
904
|
-
|
|
905
|
-
--control-server-db-uninstall
|
|
906
|
-
|
|
907
|
-
--
|
|
908
|
-
|
|
909
|
-
--
|
|
910
|
-
|
|
911
|
-
--
|
|
912
|
-
|
|
913
|
-
--
|
|
914
|
-
|
|
915
|
-
--
|
|
916
|
-
|
|
917
|
-
--
|
|
918
|
-
|
|
919
|
-
--
|
|
920
|
-
|
|
921
|
-
--
|
|
922
|
-
|
|
923
|
-
--
|
|
924
|
-
-
|
|
921
|
+
--control-server-install Installs the baremetal control server.
|
|
922
|
+
--control-server-uninstall Uninstalls the baremetal control server.
|
|
923
|
+
--control-server-restart Restarts the baremetal control server.
|
|
924
|
+
--control-server-db-install Installs up the database for the baremetal control server.
|
|
925
|
+
--control-server-db-uninstall Uninstalls the database for the baremetal control server.
|
|
926
|
+
--create-machine Creates a new baremetal machine entry in the database.
|
|
927
|
+
--mac <mac> Specifies the MAC address for baremetal machine operations. Use "random" for random MAC, "hardware" to use device's actual MAC (no spoofing), or specify a MAC address.
|
|
928
|
+
--ipxe Chainloads iPXE to normalize identity before commissioning.
|
|
929
|
+
--ipxe-rebuild Forces rebuild of iPXE binary with embedded boot script.
|
|
930
|
+
--install-packer Installs Packer CLI.
|
|
931
|
+
--packer-maas-image-template <template-path> Creates a new image folder from canonical/packer-maas template path (requires workflow-id).
|
|
932
|
+
--packer-workflow-id <workflow-id> Specifies the workflow ID for Packer MAAS image operations.
|
|
933
|
+
--packer-maas-image-build Builds a MAAS image using Packer for the workflow specified by --packer-workflow-id.
|
|
934
|
+
--packer-maas-image-upload Uploads an existing MAAS image artifact without rebuilding for the workflow specified by --packer-workflow-id.
|
|
935
|
+
--packer-maas-image-cached Continue last build without removing artifacts (used with --packer-maas-image-build).
|
|
936
|
+
--remove-machines <system-ids> Removes baremetal machines by comma-separated system IDs, or use "all"
|
|
937
|
+
--clear-discovered Clears all discovered baremetal machines from the database.
|
|
938
|
+
--commission Init workflow for commissioning a physical machine.
|
|
939
|
+
--bootstrap-http-server-path <path> Sets a custom bootstrap HTTP server path for baremetal commissioning.
|
|
940
|
+
--bootstrap-http-server-port <port> Sets a custom bootstrap HTTP server port for baremetal commissioning.
|
|
941
|
+
--iso-url <url> Uses a custom ISO URL for baremetal machine commissioning.
|
|
942
|
+
--nfs-build Builds an NFS root filesystem for a workflow id config architecture using QEMU emulation.
|
|
943
|
+
--nfs-mount Mounts the NFS root filesystem for a workflow id config architecture.
|
|
944
|
+
--nfs-unmount Unmounts the NFS root filesystem for a workflow id config architecture.
|
|
945
|
+
--nfs-build-server Builds the NFS server for a workflow id config architecture.
|
|
946
|
+
--nfs-sh Copies QEMU emulation root entrypoint shell command to the clipboard.
|
|
947
|
+
--cloud-init Sets the kernel parameters and sets the necessary seed users on the HTTP server.
|
|
948
|
+
--cloud-init-update Updates cloud init for a workflow id config architecture.
|
|
949
|
+
--ubuntu-tools-build Builds ubuntu tools for chroot environment.
|
|
950
|
+
--ubuntu-tools-test Tests ubuntu tools in chroot environment.
|
|
951
|
+
--rocky-tools-build Builds rocky linux tools for chroot environment.
|
|
952
|
+
--rocky-tools-test Tests rocky linux tools in chroot environment.
|
|
953
|
+
--bootcmd <bootcmd-list> Comma-separated list of boot commands to execute.
|
|
954
|
+
--runcmd <runcmd-list> Comma-separated list of run commands to execute.
|
|
955
|
+
--logs <log-id> Displays logs for log id: dhcp, cloud, machine, cloud-config.
|
|
956
|
+
--dev Sets the development context environment for baremetal operations.
|
|
957
|
+
--ls Lists available boot resources and machines.
|
|
958
|
+
-h, --help display help for command
|
|
925
959
|
|
|
926
960
|
```
|
|
927
961
|
|
package/conf.js
CHANGED
|
@@ -23,6 +23,7 @@ const DefaultConf = /**/ {
|
|
|
23
23
|
'SocketIo',
|
|
24
24
|
'Translate',
|
|
25
25
|
'Modal',
|
|
26
|
+
'SearchBox',
|
|
26
27
|
'BtnIcon',
|
|
27
28
|
'Logger',
|
|
28
29
|
'Css',
|
|
@@ -193,6 +194,7 @@ const DefaultConf = /**/ {
|
|
|
193
194
|
'Keyboard',
|
|
194
195
|
'Translate',
|
|
195
196
|
'Modal',
|
|
197
|
+
'SearchBox',
|
|
196
198
|
'BtnIcon',
|
|
197
199
|
'Logger',
|
|
198
200
|
'Css',
|
|
@@ -336,6 +338,7 @@ const DefaultConf = /**/ {
|
|
|
336
338
|
'SocketIo',
|
|
337
339
|
'Translate',
|
|
338
340
|
'Modal',
|
|
341
|
+
'SearchBox',
|
|
339
342
|
'BtnIcon',
|
|
340
343
|
'Logger',
|
|
341
344
|
'Css',
|
|
@@ -525,6 +528,7 @@ const DefaultConf = /**/ {
|
|
|
525
528
|
'Keyboard',
|
|
526
529
|
'Translate',
|
|
527
530
|
'Modal',
|
|
531
|
+
'SearchBox',
|
|
528
532
|
'BtnIcon',
|
|
529
533
|
'Logger',
|
|
530
534
|
'Css',
|
|
@@ -630,6 +634,7 @@ const DefaultConf = /**/ {
|
|
|
630
634
|
'Keyboard',
|
|
631
635
|
'Translate',
|
|
632
636
|
'Modal',
|
|
637
|
+
'SearchBox',
|
|
633
638
|
'BtnIcon',
|
|
634
639
|
'Logger',
|
|
635
640
|
'Css',
|
|
@@ -927,7 +932,10 @@ const DefaultConf = /**/ {
|
|
|
927
932
|
},
|
|
928
933
|
cron: {
|
|
929
934
|
records: { A: [{ host: 'example.com', dns: 'dondominio', api_key: '???', user: '???' }] },
|
|
930
|
-
jobs: {
|
|
935
|
+
jobs: {
|
|
936
|
+
dns: { expression: '* * * * *', enabled: true, instances: 1 },
|
|
937
|
+
backups: { expression: '0 1 * * *', enabled: true, instances: 1 },
|
|
938
|
+
},
|
|
931
939
|
},
|
|
932
940
|
}; /**/
|
|
933
941
|
|
package/deployment.yaml
CHANGED
|
@@ -18,13 +18,13 @@ spec:
|
|
|
18
18
|
spec:
|
|
19
19
|
containers:
|
|
20
20
|
- name: dd-cyberia-development-blue
|
|
21
|
-
image: localhost/rockylinux9-underpost:v2.
|
|
21
|
+
image: localhost/rockylinux9-underpost:v2.98.0
|
|
22
22
|
|
|
23
23
|
command:
|
|
24
24
|
- /bin/sh
|
|
25
25
|
- -c
|
|
26
26
|
- >
|
|
27
|
-
npm install -g npm@11.2.0 && npm install -g underpost &&
|
|
27
|
+
npm install -g npm@11.2.0 && npm install -g underpost && node bin secret underpost --create-from-file /etc/config/.env.development && node bin start --build --run dd-cyberia development
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
volumeMounts:
|
|
@@ -156,13 +156,13 @@ spec:
|
|
|
156
156
|
spec:
|
|
157
157
|
containers:
|
|
158
158
|
- name: dd-cyberia-development-green
|
|
159
|
-
image: localhost/rockylinux9-underpost:v2.
|
|
159
|
+
image: localhost/rockylinux9-underpost:v2.98.0
|
|
160
160
|
|
|
161
161
|
command:
|
|
162
162
|
- /bin/sh
|
|
163
163
|
- -c
|
|
164
164
|
- >
|
|
165
|
-
npm install -g npm@11.2.0 && npm install -g underpost &&
|
|
165
|
+
npm install -g npm@11.2.0 && npm install -g underpost && node bin secret underpost --create-from-file /etc/config/.env.development && node bin start --build --run dd-cyberia development
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
volumeMounts:
|
|
@@ -17,7 +17,7 @@ spec:
|
|
|
17
17
|
spec:
|
|
18
18
|
containers:
|
|
19
19
|
- name: dd-default-development-blue
|
|
20
|
-
image: localhost/rockylinux9-underpost:v2.
|
|
20
|
+
image: localhost/rockylinux9-underpost:v2.98.0
|
|
21
21
|
# resources:
|
|
22
22
|
# requests:
|
|
23
23
|
# memory: "124Ki"
|
|
@@ -100,7 +100,7 @@ spec:
|
|
|
100
100
|
spec:
|
|
101
101
|
containers:
|
|
102
102
|
- name: dd-default-development-green
|
|
103
|
-
image: localhost/rockylinux9-underpost:v2.
|
|
103
|
+
image: localhost/rockylinux9-underpost:v2.98.0
|
|
104
104
|
# resources:
|
|
105
105
|
# requests:
|
|
106
106
|
# memory: "124Ki"
|