You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable boot_check_pattern for turingpi_node resource
- Add boot_check_pattern option (default: 'login:')
- Support Talos Linux detection ('machine is running and ready')
- Update documentation with pattern examples
- Update all versions to 1.0.5
boot_check_pattern = "machine is running and ready"
53
+
login_prompt_timeout = 180
54
+
}
55
+
```
56
+
45
57
### Complete Cluster Setup
46
58
47
59
```hcl
@@ -95,8 +107,9 @@ output "node_status" {
95
107
-`node` - (Required, Integer) The node ID (1-4).
96
108
-`power_state` - (Optional, String) The desired power state. Valid values are `"on"` or `"off"`. Defaults to `"on"`.
97
109
-`firmware_file` - (Optional, String) Path to the firmware image file. If specified, firmware will be flashed to the node.
98
-
-`boot_check` - (Optional, Boolean) Whether to monitor UART output for login prompt to verify successful boot. Defaults to `false`.
99
-
-`login_prompt_timeout` - (Optional, Integer) Timeout in seconds to wait for login prompt when `boot_check` is enabled. Defaults to `60`.
110
+
-`boot_check` - (Optional, Boolean) Whether to monitor UART output to verify successful boot. Defaults to `false`.
111
+
-`boot_check_pattern` - (Optional, String) The pattern to search for in UART output to confirm successful boot. Defaults to `"login:"`. Use `"machine is running and ready"` for Talos Linux.
112
+
-`login_prompt_timeout` - (Optional, Integer) Timeout in seconds to wait for boot pattern when `boot_check` is enabled. Defaults to `60`.
100
113
101
114
## Attribute Reference
102
115
@@ -106,12 +119,20 @@ In addition to all arguments above, the following attributes are exported:
106
119
107
120
## Boot Verification
108
121
109
-
When `boot_check` is enabled, the provider monitors the node's UART output for a login prompt, indicating the operating system has successfully booted. This is useful for:
122
+
When `boot_check` is enabled, the provider monitors the node's UART output for a specific pattern indicating the operating system has successfully booted. This is useful for:
- Waiting for nodes to be ready before dependent operations
113
126
- Detecting boot failures
114
127
128
+
### Supported Operating Systems
129
+
130
+
| OS | Pattern |
131
+
|----|---------|
132
+
| Standard Linux |`login:` (default) |
133
+
| Talos Linux |`machine is running and ready`|
134
+
| Custom | Any string present in UART output |
135
+
115
136
The `login_prompt_timeout` controls how long to wait for the boot to complete. Increase this value for slower compute modules or complex boot processes.
Description: "Timeout in seconds to wait for login prompt via UART",
42
+
Description: "Timeout in seconds to wait for boot check pattern via UART",
43
+
},
44
+
"boot_check_pattern": {
45
+
Type: schema.TypeString,
46
+
Optional: true,
47
+
Default: "login:",
48
+
Description: "Pattern to search for in UART output to confirm successful boot (e.g., 'login:' for standard Linux, 'machine is running and ready' for Talos)",
0 commit comments