-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_config_with_client_and_host.toml.patch
More file actions
68 lines (67 loc) · 3.8 KB
/
example_config_with_client_and_host.toml.patch
File metadata and controls
68 lines (67 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- example_config.toml 2026-03-01 16:31:27.908295225 +0100
+++ example_config_with_client_and_host.toml 2026-03-20 19:15:26.492049844 +0100
@@ -129,27 +129,28 @@
# The host agent installer will print the exact configuration line you need to add here.
# Simply copy and paste it into this file.
[hosts]
-# [hosts.my-host-name]
-# # IP address of the host where the agent is running.
-# # This should be reachable from the coordinator.
-# ip = "192.168.1.100"
-# # MAC address of the network interface used for Wake-on-LAN.
-# # Required for waking the host. The installer uses "ip link show" or "ifconfig" on the host to find it.
-# mac = "AA:BB:CC:DD:EE:FF"
-# # TCP port the host agent listens on.
-# # This must match the port configured in the host agent's config.
-# # Default agent port is 9090, but can be changed.
-# port = 9090
-# # Shared secret for HMAC authentication between coordinator and agent.
-# # This must match the secret in the host agent's config.
-# # The installer generates one of these.
-# # Could be generated yourself with e.g., openssl rand -hex 32.
-# shared_secret = "your-generated-secret"
-# # When `true`, the coordinator will periodically enforce the desired host state
-# # (derived from the current lease set) by sending wake or shutdown commands even
-# # if no lease change occurred. Defaults to `false` (edge-triggered only).
-# # For more details on the `enforce_state` field, see the [enforce_state behavior example](https://github.com/9SMTM6/shuthost/blob/main/docs/examples/enforce_state_behavior.md).
-# enforce_state = false
+[hosts.my-host-name]
+ # IP address of the host where the agent is running.
+ # This should be reachable from the coordinator.
+ ip = "192.168.1.100"
+ # MAC address of the network interface used for Wake-on-LAN.
+ # Required for waking the host. The installer uses "ip link show" or "ifconfig" on the host to find it.
+ mac = "AA:BB:CC:DD:EE:FF"
+ # TCP port the host agent listens on.
+ # This must match the port configured in the host agent's config.
+ # Default agent port is 9090, but can be changed.
+ port = 9090
+ # Shared secret for HMAC authentication between coordinator and agent.
+ # This must match the secret in the host agent's config.
+ # The installer generates one of these.
+ # Could be generated yourself with e.g., openssl rand -hex 32.
+ shared_secret = "your-generated-secret"
+ # When `true`, the coordinator will periodically enforce the desired host state
+ # (derived from the current lease set) by sending wake or shutdown commands even
+ # if no lease change occurred. Defaults to `false` (edge-triggered only).
+ # For more details on the `enforce_state` field, see the [enforce_state behavior example](https://github.com/9SMTM6/shuthost/blob/main/docs/examples/enforce_state_behavior.md).
+ enforce_state = false
+
# =============================================================================
# CLIENT CONFIGURATION
@@ -160,9 +161,9 @@
# The client installer will print the exact configuration line you need to add here.
# Simply copy and paste it into this file.
[clients]
-# [clients."my-client-name"]
-# # Shared secret for HMAC authentication between coordinator and agent.
-# # This must match the secret in the host agent's config.
-# # The installer generates one of these.
-# # Could be generated yourself with e.g., openssl rand -hex 32.
-# shared_secret = "your-generated-secret"
+[clients."my-client-name"]
+ # Shared secret for HMAC authentication between coordinator and agent.
+ # This must match the secret in the host agent's config.
+ # The installer generates one of these.
+ # Could be generated yourself with e.g., openssl rand -hex 32.
+ shared_secret = "your-generated-secret"