pmcf 6.44.4 → 6.44.6
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/package.json +3 -3
- package/src/endpoint.mjs +1 -1
- package/src/services/influxdb.mjs +8 -1
- package/src/services/kea.mjs +45 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.44.
|
|
3
|
+
"version": "6.44.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"aggregated-map": "^1.0.
|
|
53
|
+
"aggregated-map": "^1.0.11",
|
|
54
54
|
"content-entry-transform": "^1.7.6",
|
|
55
55
|
"ip-utilties": "^3.13.1",
|
|
56
56
|
"npm-pkgbuild": "^22.1.3",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"yaml": "^2.9.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@types/node": "^26.
|
|
62
|
+
"@types/node": "^26.5.0",
|
|
63
63
|
"ava": "^8.0.1",
|
|
64
64
|
"c8": "^12.0.0",
|
|
65
65
|
"documentation": "^14.0.3",
|
package/src/endpoint.mjs
CHANGED
|
@@ -33,7 +33,14 @@ export class influxdb extends CoreService {
|
|
|
33
33
|
async *preparePackages(dir) {
|
|
34
34
|
const packageData = await this.packageData;
|
|
35
35
|
|
|
36
|
-
packageData.sources.push(
|
|
36
|
+
packageData.sources.push(
|
|
37
|
+
...(await Array.fromAsync(this.templateContent())),
|
|
38
|
+
new FileContentProvider({
|
|
39
|
+
dir,
|
|
40
|
+
pattern: ["**/*"],
|
|
41
|
+
permissions: this.content.permissions
|
|
42
|
+
})
|
|
43
|
+
);
|
|
37
44
|
|
|
38
45
|
await writeLines(
|
|
39
46
|
join(dir, "etc", "influxdb"),
|
package/src/services/kea.mjs
CHANGED
|
@@ -134,7 +134,12 @@ export class kea extends CoreService {
|
|
|
134
134
|
{
|
|
135
135
|
family: FAMILY_UNIX,
|
|
136
136
|
path: "/run/kea/ctrl-4"
|
|
137
|
-
}
|
|
137
|
+
},
|
|
138
|
+
/*{
|
|
139
|
+
family: FAMILY_IPV4,
|
|
140
|
+
port: 53005,
|
|
141
|
+
pathname: "/"
|
|
142
|
+
}*/
|
|
138
143
|
]
|
|
139
144
|
},
|
|
140
145
|
"kea-control-dhcp6": {
|
|
@@ -142,7 +147,12 @@ export class kea extends CoreService {
|
|
|
142
147
|
{
|
|
143
148
|
family: FAMILY_UNIX,
|
|
144
149
|
path: "/run/kea/ctrl-6"
|
|
145
|
-
}
|
|
150
|
+
},
|
|
151
|
+
/*{
|
|
152
|
+
family: FAMILY_IPV6,
|
|
153
|
+
port: 53005,
|
|
154
|
+
pathname: "/"
|
|
155
|
+
}*/
|
|
146
156
|
]
|
|
147
157
|
},
|
|
148
158
|
"kea-control-ddns": {
|
|
@@ -207,7 +217,9 @@ export class kea extends CoreService {
|
|
|
207
217
|
"interfaces-config": {
|
|
208
218
|
interfaces: listenInterfaces(`IPv${family}`)
|
|
209
219
|
},
|
|
210
|
-
"control-sockets":
|
|
220
|
+
"control-sockets": this.endpoints(`kea-control-dhcp${family}`).map(e =>
|
|
221
|
+
toSocket(e)
|
|
222
|
+
),
|
|
211
223
|
"lease-database": {
|
|
212
224
|
type: "memfile",
|
|
213
225
|
"lfc-interval": 3600
|
|
@@ -307,11 +319,32 @@ export class kea extends CoreService {
|
|
|
307
319
|
return cfg;
|
|
308
320
|
};
|
|
309
321
|
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
322
|
+
const toSocket = endpoint => {
|
|
323
|
+
switch (endpoint.family) {
|
|
324
|
+
case FAMILY_IPV4:
|
|
325
|
+
case FAMILY_IPV6:
|
|
326
|
+
return {
|
|
327
|
+
"socket-type": "http",
|
|
328
|
+
"socket-address": endpoint.address.hostname,
|
|
329
|
+
"socket-port": endpoint.port,
|
|
330
|
+
authentication: {
|
|
331
|
+
type: "basic",
|
|
332
|
+
realm: "Kea Control Agent",
|
|
333
|
+
directory: "/etc/kea",
|
|
334
|
+
clients: [
|
|
335
|
+
{
|
|
336
|
+
"user-file": "kea-api-user",
|
|
337
|
+
"password-file": "kea-api-password"
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
case FAMILY_UNIX:
|
|
343
|
+
return {
|
|
344
|
+
"socket-type": FAMILY_UNIX,
|
|
345
|
+
"socket-name": endpoint?.path
|
|
346
|
+
};
|
|
347
|
+
}
|
|
315
348
|
};
|
|
316
349
|
|
|
317
350
|
/*const ctrlAgent = {
|
|
@@ -319,9 +352,9 @@ export class kea extends CoreService {
|
|
|
319
352
|
"http-host": ctrlAgentEndpoint.hostname,
|
|
320
353
|
"http-port": ctrlAgentEndpoint.port,
|
|
321
354
|
"control-sockets": {
|
|
322
|
-
dhcp4:
|
|
323
|
-
dhcp6:
|
|
324
|
-
d2:
|
|
355
|
+
dhcp4: toSocket(this.endpoint("kea-control-dhcp4")),
|
|
356
|
+
dhcp6: toSocket(this.endpoint("kea-control-dhcp6")),
|
|
357
|
+
d2: toSocket(this.endpoint("kea-control-ddns"))
|
|
325
358
|
},
|
|
326
359
|
loggers
|
|
327
360
|
}
|
|
@@ -349,9 +382,7 @@ export class kea extends CoreService {
|
|
|
349
382
|
DhcpDdns: {
|
|
350
383
|
"ip-address": ddnsEndpoint.address,
|
|
351
384
|
port: ddnsEndpoint.port,
|
|
352
|
-
"control-socket":
|
|
353
|
-
this.endpoint(e => e.type === "kea-control-ddns")
|
|
354
|
-
),
|
|
385
|
+
"control-socket": toSocket(this.endpoint("kea-control-ddns")),
|
|
355
386
|
"tsig-keys": [],
|
|
356
387
|
"forward-ddns": {
|
|
357
388
|
"ddns-domains": dnsServersSlot([...this.domains])
|