fleetfizz 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fleetfizz.mjs +1127 -157
- package/package.json +3 -2
- package/schema.json +321 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleetfizz",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Keep every Machine on your tailnet in line with one config.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"directory": "apps/cli"
|
|
10
10
|
},
|
|
11
11
|
"bin": {
|
|
12
|
-
"fizz": "./dist/fleetfizz.mjs"
|
|
12
|
+
"fizz": "./dist/fleetfizz.mjs",
|
|
13
|
+
"fleetfizz": "./dist/fleetfizz.mjs"
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
15
16
|
"dist",
|
package/schema.json
CHANGED
|
@@ -6,23 +6,6 @@
|
|
|
6
6
|
"$schema": {
|
|
7
7
|
"type": "string"
|
|
8
8
|
},
|
|
9
|
-
"shippedAt": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
|
-
"shippedFrom": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"minLength": 1
|
|
15
|
-
},
|
|
16
|
-
"shippedTo": {
|
|
17
|
-
"type": "object",
|
|
18
|
-
"propertyNames": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"minLength": 1
|
|
21
|
-
},
|
|
22
|
-
"additionalProperties": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
9
|
"machines": {
|
|
27
10
|
"type": "array",
|
|
28
11
|
"items": {
|
|
@@ -37,6 +20,323 @@
|
|
|
37
20
|
}
|
|
38
21
|
]
|
|
39
22
|
},
|
|
23
|
+
"files": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"platforms": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"prefixItems": [
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": ["darwin", "linux"]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"minItems": 1,
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["darwin", "linux"]
|
|
38
|
+
},
|
|
39
|
+
"allOf": [
|
|
40
|
+
{
|
|
41
|
+
"description": "`darwin`, `linux`, or both."
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"machines": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"prefixItems": [
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"minItems": 1,
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1
|
|
57
|
+
},
|
|
58
|
+
"allOf": [
|
|
59
|
+
{
|
|
60
|
+
"description": "Machine names from `machines`."
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"dependsOn": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": ["files", "vp", "brew", "cask", "repos"]
|
|
69
|
+
},
|
|
70
|
+
"allOf": [
|
|
71
|
+
{
|
|
72
|
+
"description": "Providers whose Items must succeed on a Machine before this one changes there."
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"items": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"propertyNames": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": {
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"platforms": {
|
|
90
|
+
"type": "array",
|
|
91
|
+
"prefixItems": [
|
|
92
|
+
{
|
|
93
|
+
"type": "string",
|
|
94
|
+
"enum": ["darwin", "linux"]
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"minItems": 1,
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"enum": ["darwin", "linux"]
|
|
101
|
+
},
|
|
102
|
+
"allOf": [
|
|
103
|
+
{
|
|
104
|
+
"description": "`darwin`, `linux`, or both."
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"machines": {
|
|
109
|
+
"type": "array",
|
|
110
|
+
"prefixItems": [
|
|
111
|
+
{
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"minItems": 1,
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 1
|
|
120
|
+
},
|
|
121
|
+
"allOf": [
|
|
122
|
+
{
|
|
123
|
+
"description": "Machine names from `machines`."
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"path": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1,
|
|
130
|
+
"title": "path",
|
|
131
|
+
"description": "an absolute path, or one under ~",
|
|
132
|
+
"allOf": [
|
|
133
|
+
{
|
|
134
|
+
"description": "A file or directory, absolute or under `~`, which expands on each Machine."
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"exclude": {
|
|
139
|
+
"type": "array",
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"minLength": 1
|
|
143
|
+
},
|
|
144
|
+
"allOf": [
|
|
145
|
+
{
|
|
146
|
+
"description": "Globs inside a directory that are neither copied nor deleted. One without a `/` matches a name at any depth. `.DS_Store` and `._*` are always excluded. Every Variant of one Shared File has the same exclude."
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": ["path"],
|
|
152
|
+
"additionalProperties": false
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "string",
|
|
156
|
+
"minLength": 1,
|
|
157
|
+
"title": "path",
|
|
158
|
+
"description": "an absolute path, or one under ~"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "array",
|
|
164
|
+
"prefixItems": [
|
|
165
|
+
{
|
|
166
|
+
"anyOf": [
|
|
167
|
+
{
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"platforms": {
|
|
171
|
+
"type": "array",
|
|
172
|
+
"prefixItems": [
|
|
173
|
+
{
|
|
174
|
+
"type": "string",
|
|
175
|
+
"enum": ["darwin", "linux"]
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"minItems": 1,
|
|
179
|
+
"items": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"enum": ["darwin", "linux"]
|
|
182
|
+
},
|
|
183
|
+
"allOf": [
|
|
184
|
+
{
|
|
185
|
+
"description": "`darwin`, `linux`, or both."
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"machines": {
|
|
190
|
+
"type": "array",
|
|
191
|
+
"prefixItems": [
|
|
192
|
+
{
|
|
193
|
+
"type": "string",
|
|
194
|
+
"minLength": 1
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"minItems": 1,
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"minLength": 1
|
|
201
|
+
},
|
|
202
|
+
"allOf": [
|
|
203
|
+
{
|
|
204
|
+
"description": "Machine names from `machines`."
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"path": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"minLength": 1,
|
|
211
|
+
"title": "path",
|
|
212
|
+
"description": "an absolute path, or one under ~",
|
|
213
|
+
"allOf": [
|
|
214
|
+
{
|
|
215
|
+
"description": "A file or directory, absolute or under `~`, which expands on each Machine."
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"exclude": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"minLength": 1
|
|
224
|
+
},
|
|
225
|
+
"allOf": [
|
|
226
|
+
{
|
|
227
|
+
"description": "Globs inside a directory that are neither copied nor deleted. One without a `/` matches a name at any depth. `.DS_Store` and `._*` are always excluded. Every Variant of one Shared File has the same exclude."
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": ["path"],
|
|
233
|
+
"additionalProperties": false
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "string",
|
|
237
|
+
"minLength": 1,
|
|
238
|
+
"title": "path",
|
|
239
|
+
"description": "an absolute path, or one under ~"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"minItems": 1,
|
|
245
|
+
"items": {
|
|
246
|
+
"anyOf": [
|
|
247
|
+
{
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"platforms": {
|
|
251
|
+
"type": "array",
|
|
252
|
+
"prefixItems": [
|
|
253
|
+
{
|
|
254
|
+
"type": "string",
|
|
255
|
+
"enum": ["darwin", "linux"]
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"minItems": 1,
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"enum": ["darwin", "linux"]
|
|
262
|
+
},
|
|
263
|
+
"allOf": [
|
|
264
|
+
{
|
|
265
|
+
"description": "`darwin`, `linux`, or both."
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"machines": {
|
|
270
|
+
"type": "array",
|
|
271
|
+
"prefixItems": [
|
|
272
|
+
{
|
|
273
|
+
"type": "string",
|
|
274
|
+
"minLength": 1
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"minItems": 1,
|
|
278
|
+
"items": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"minLength": 1
|
|
281
|
+
},
|
|
282
|
+
"allOf": [
|
|
283
|
+
{
|
|
284
|
+
"description": "Machine names from `machines`."
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
"path": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"minLength": 1,
|
|
291
|
+
"title": "path",
|
|
292
|
+
"description": "an absolute path, or one under ~",
|
|
293
|
+
"allOf": [
|
|
294
|
+
{
|
|
295
|
+
"description": "A file or directory, absolute or under `~`, which expands on each Machine."
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
"exclude": {
|
|
300
|
+
"type": "array",
|
|
301
|
+
"items": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"minLength": 1
|
|
304
|
+
},
|
|
305
|
+
"allOf": [
|
|
306
|
+
{
|
|
307
|
+
"description": "Globs inside a directory that are neither copied nor deleted. One without a `/` matches a name at any depth. `.DS_Store` and `._*` are always excluded. Every Variant of one Shared File has the same exclude."
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
"required": ["path"],
|
|
313
|
+
"additionalProperties": false
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "string",
|
|
317
|
+
"minLength": 1,
|
|
318
|
+
"title": "path",
|
|
319
|
+
"description": "an absolute path, or one under ~"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
"allOf": [
|
|
327
|
+
{
|
|
328
|
+
"description": "Shared Files, keyed by name, which names the `files:<name>` Item. Each is a path, `{ path, exclude?, platforms?, machines? }`, or a list of Variants, of which a Machine gets the first that targets it."
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"additionalProperties": false,
|
|
334
|
+
"allOf": [
|
|
335
|
+
{
|
|
336
|
+
"description": "Files and directories copied from the Starting Machine to every targeted Machine. A directory is mirrored."
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
40
340
|
"repos": {
|
|
41
341
|
"type": "object",
|
|
42
342
|
"properties": {
|
|
@@ -82,7 +382,7 @@
|
|
|
82
382
|
"type": "array",
|
|
83
383
|
"items": {
|
|
84
384
|
"type": "string",
|
|
85
|
-
"enum": ["vp", "brew", "cask", "repos"]
|
|
385
|
+
"enum": ["files", "vp", "brew", "cask", "repos"]
|
|
86
386
|
},
|
|
87
387
|
"allOf": [
|
|
88
388
|
{
|
|
@@ -606,7 +906,7 @@
|
|
|
606
906
|
"type": "array",
|
|
607
907
|
"items": {
|
|
608
908
|
"type": "string",
|
|
609
|
-
"enum": ["vp", "brew", "cask", "repos"]
|
|
909
|
+
"enum": ["files", "vp", "brew", "cask", "repos"]
|
|
610
910
|
},
|
|
611
911
|
"allOf": [
|
|
612
912
|
{
|
|
@@ -914,7 +1214,7 @@
|
|
|
914
1214
|
"type": "array",
|
|
915
1215
|
"items": {
|
|
916
1216
|
"type": "string",
|
|
917
|
-
"enum": ["vp", "brew", "cask", "repos"]
|
|
1217
|
+
"enum": ["files", "vp", "brew", "cask", "repos"]
|
|
918
1218
|
},
|
|
919
1219
|
"allOf": [
|
|
920
1220
|
{
|
|
@@ -1174,7 +1474,7 @@
|
|
|
1174
1474
|
"type": "array",
|
|
1175
1475
|
"items": {
|
|
1176
1476
|
"type": "string",
|
|
1177
|
-
"enum": ["vp", "brew", "cask", "repos"]
|
|
1477
|
+
"enum": ["files", "vp", "brew", "cask", "repos"]
|
|
1178
1478
|
},
|
|
1179
1479
|
"allOf": [
|
|
1180
1480
|
{
|