rallyup 是一款轻量级的 Wake-On-LAN (WOL) 计划程序和依赖管理器,专为小型企业和家庭实验室设计。
rallyuprallyup is a lightweight Wake-On-LAN (WOL) scheduler and dependency manager designed for small businesses and homelabs. It ensures that infrastructure services like firewalls, storage, and hypervisors are brought online in the correct order, particularly after events like power outages.
A typical setup involves configuring most of the infrastructure for WOL but not for Wake-On-Power, and setting rallyup to run on startup on a low-power device like a Raspberry Pi. When you need to bring the entire environment online, simply power on the device running rallyup, and the rest of the infrastructure will automatically follow in the correct order.
rallyup servers.yamlThe dependencies between servers, along with the methods for validating that they are online, are defined in a YAML configuration file.
Fields:
Example:
- name: "firewall"
mac: "00:11:22:33:44:55"
interface: "eth0"
vlan: 100
depends:
- "storage"
check: [... see below]Each server can have multiple health checks to ensure the server is fully online before the next device starts up.
The HTTP health check verifies whether a specified endpoint responds as expected.
Fields
http for an HTTP health check.Note: You must provide either
statusorregex, or both.
Example
- type: http
url: "http://192.168.1.1/health"
status: 200
retry: 5s
timeout: 30sThe port health check verifies whether a specified TCP port on a server is open and accessible. This is really a stand-in for verifying NFS and SMB ports until I can figure out how to check if those services are online.
Fields
port for a port health checkExample
- type: port
ip: "192.168.1.1"
port: 22
retry: "10s"
timeout: "1m"The shell health check executes a shell command checks the result. This is to provide the option of user-defined health checks.
Fields
shell for a shell health check.Note: You must provide either
statusorregex, or both.
Example
- type: shell
command: ping -c 1 192.168.1.1
status: 0
retry: 5s
timeout: 20sTODO:
- Need to test in the lab and post the actual sample
…This project is licensed under either of the following licenses, at your option:
You may choose to use this project under the terms of either license.
暂无开放 Issues,或尚未同步最近议题。