feat: Windows Agent v1.0.0
- Windows-Dienst (golang.org/x/sys/windows/svc) - Collector: CPU (GetSystemTimes), RAM (GlobalMemoryStatusEx), Disks (GetDiskFreeSpaceEx) - WS-Client: gleiche Verbindungslogik wie Linux/BSD Agent - Commands: exec, winget list/install/upgrade/upgrade-all, Windows Updates check/install, reboot - install.ps1: automatische Service-Installation mit Parametern - make agent-windows VERSION=x.x.x
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
.PHONY: all backend agent agent-linux updater-freebsd updater-linux plugin clean certs release deploy-backend deploy-frontend
|
||||
.PHONY: all backend agent agent-linux agent-windows updater-freebsd updater-linux plugin clean certs release deploy-backend deploy-frontend
|
||||
|
||||
VERSION ?= 0.0.0
|
||||
|
||||
BACKEND_BIN = build/rmm-backend
|
||||
AGENT_BIN = build/rmm-agent
|
||||
AGENT_LINUX_BIN = build/rmm-agent-linux
|
||||
AGENT_WINDOWS_BIN = build/rmm-agent-windows.exe
|
||||
UPDATER_FREEBSD_BIN = build/rmm-updater-freebsd
|
||||
UPDATER_LINUX_BIN = build/rmm-updater-linux
|
||||
|
||||
@@ -28,6 +29,11 @@ agent-linux:
|
||||
cd agent-linux && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.Version=$(VERSION)" -o ../$(AGENT_LINUX_BIN) .
|
||||
@echo "==> $(AGENT_LINUX_BIN) erstellt"
|
||||
|
||||
agent-windows:
|
||||
@echo "==> Building Agent Windows (windows/amd64)..."
|
||||
cd agent-windows && GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.Version=$(VERSION)" -o ../$(AGENT_WINDOWS_BIN) .
|
||||
@echo "==> $(AGENT_WINDOWS_BIN) erstellt"
|
||||
|
||||
updater-freebsd:
|
||||
@echo "==> Building Updater (freebsd/amd64)..."
|
||||
cd updater && GOOS=freebsd GOARCH=amd64 CGO_ENABLED=0 go build -o ../$(UPDATER_FREEBSD_BIN) .
|
||||
|
||||
Reference in New Issue
Block a user