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
Rename nats-servers to choria-brokers with port defaulting
Rename nats-servers and nats-connection-timeout to match Choria's
user-facing terminology. CLI flags become --choria-brokers and
--choria-broker-timeout. Internal transport config keys use the
bare forms (brokers, broker-timeout) consistent with all other
choria options.
The CLI parser splits comma-separated broker lists into arrays,
matching the --targets pattern. When a broker address omits the
port, default to 4222.
Also replace [x].flatten with Array(x) in client.rb for clarity,
and add CLI parser tests for the new choria flags.
Signed-off-by: nmburgan <13688219+nmburgan@users.noreply.github.com>
| `mcollective-certname` | `--choria-mcollective-certname` | String | (auto) | Override the MCollective certname for Choria client identity. See [Non-root certname](#non-root-certname) below. |
99
-
| `nats-connection-timeout` | `--nats-connection-timeout` | Integer | `30` | Seconds to wait for the TCP connection to the NATS broker. |
100
-
| `nats-servers` | `--nats-servers` | String or Array | (from config file) | NATS broker addresses in `host:port` format (comma-separated for multiple). Do not use the `nats://` prefix. Multiple servers provide failover if a broker is unavailable. Overrides the config file. |
99
+
| `broker-timeout` | `--choria-broker-timeout` | Integer | `30` | Seconds to wait for the TCP connection to a Choria broker. |
100
+
| `brokers` | `--choria-brokers` | String or Array | (auto-discovered) | Choria broker addresses in `host` or `host:port` format (comma-separated for multiple). Port defaults to 4222 if omitted. Do not use the `nats://` prefix. When not provided, the Choria client checks the config file, then SRV records, then falls back to `puppet:4222`. Multiple servers provide failover. |
"description": "How long to wait in seconds for the initial TCP connection to the NATS broker. If the connection cannot be made within this time, the operation fails.",
1865
+
"broker-timeout": {
1866
+
"description": "How long to wait in seconds for the initial TCP connection to a Choria broker. If the connection cannot be made within this time, the operation fails.",
1867
1867
"oneOf": [
1868
1868
{
1869
1869
"type": "integer",
@@ -2166,8 +2166,8 @@
2166
2166
}
2167
2167
]
2168
2168
},
2169
-
"nats-servers": {
2170
-
"description": "One or more NATS server addresses in host:port format for the Choria transport. Do not use the nats:// prefix. Overrides the middleware hosts from the Choria client configuration file. Can be a single string or an array.",
2169
+
"brokers": {
2170
+
"description": "One or more Choria broker addresses in host or host:port format. Port defaults to 4222 if omitted. Do not use the nats:// prefix. Overrides the middleware hosts from the Choria client configuration file. Can be a single string or an array.",
Copy file name to clipboardExpand all lines: schemas/bolt-inventory.schema.json
+36-36Lines changed: 36 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,42 @@
63
63
{
64
64
"type": "object",
65
65
"properties": {
66
+
"broker-timeout": {
67
+
"description": "How long to wait in seconds for the initial TCP connection to a Choria broker. If the connection cannot be made within this time, the operation fails.",
68
+
"oneOf": [
69
+
{
70
+
"type": "integer",
71
+
"minimum": 1
72
+
},
73
+
{
74
+
"$ref": "#/definitions/_plugin"
75
+
}
76
+
]
77
+
},
78
+
"brokers": {
79
+
"description": "One or more Choria broker addresses in host or host:port format. Port defaults to 4222 if omitted. Do not use the nats:// prefix. Overrides the middleware hosts from the Choria client configuration file. Can be a single string or an array.",
80
+
"oneOf": [
81
+
{
82
+
"type": [
83
+
"string",
84
+
"array"
85
+
],
86
+
"items": {
87
+
"oneOf": [
88
+
{
89
+
"type": "string"
90
+
},
91
+
{
92
+
"$ref": "#/definitions/_plugin"
93
+
}
94
+
]
95
+
}
96
+
},
97
+
{
98
+
"$ref": "#/definitions/_plugin"
99
+
}
100
+
]
101
+
},
66
102
"cleanup": {
67
103
"description": "Whether to clean up temporary files created on targets. When running commands on a target, Bolt might create temporary files. After completing the command, these files are automatically deleted. This value can be set to 'false' if you wish to leave these temporary files on the target.",
68
104
"oneOf": [
@@ -150,42 +186,6 @@
150
186
}
151
187
]
152
188
},
153
-
"nats-connection-timeout": {
154
-
"description": "How long to wait in seconds for the initial TCP connection to the NATS broker. If the connection cannot be made within this time, the operation fails.",
155
-
"oneOf": [
156
-
{
157
-
"type": "integer",
158
-
"minimum": 1
159
-
},
160
-
{
161
-
"$ref": "#/definitions/_plugin"
162
-
}
163
-
]
164
-
},
165
-
"nats-servers": {
166
-
"description": "One or more NATS server addresses in host:port format for the Choria transport. Do not use the nats:// prefix. Overrides the middleware hosts from the Choria client configuration file. Can be a single string or an array.",
167
-
"oneOf": [
168
-
{
169
-
"type": [
170
-
"string",
171
-
"array"
172
-
],
173
-
"items": {
174
-
"oneOf": [
175
-
{
176
-
"type": "string"
177
-
},
178
-
{
179
-
"$ref": "#/definitions/_plugin"
180
-
}
181
-
]
182
-
}
183
-
},
184
-
{
185
-
"$ref": "#/definitions/_plugin"
186
-
}
187
-
]
188
-
},
189
189
"puppet-environment": {
190
190
"description": "The Puppet environment to use when constructing task file URIs for the Choria bolt_tasks agent.",
0 commit comments