pmcf 6.70.2 → 6.71.1
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/README.md +21 -21
- package/package.json +2 -2
- package/src/host.mjs +2 -2
- package/src/owner.mjs +0 -29
- package/src/service-owner.mjs +0 -4
- package/src/services/influxdb.mjs +13 -4
package/README.md
CHANGED
|
@@ -78,31 +78,31 @@ generates config packages for:
|
|
|
78
78
|
* [domainNames](#domainnames)
|
|
79
79
|
* [InitializationContext](#initializationcontext)
|
|
80
80
|
* [Parameters](#parameters-13)
|
|
81
|
+
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
82
|
+
* [networkAddresses](#networkaddresses)
|
|
83
|
+
* [Parameters](#parameters-14)
|
|
81
84
|
* [Interface](#interface)
|
|
82
85
|
* [zones](#zones)
|
|
83
86
|
* [addressesStatement](#addressesstatement)
|
|
84
|
-
* [Parameters](#parameters-
|
|
87
|
+
* [Parameters](#parameters-15)
|
|
85
88
|
* [SystemdJournalRemoteService](#systemdjournalremoteservice)
|
|
86
89
|
* [Properties](#properties)
|
|
87
90
|
* [systemdConfigs](#systemdconfigs)
|
|
88
|
-
* [Parameters](#parameters-
|
|
91
|
+
* [Parameters](#parameters-16)
|
|
89
92
|
* [SystemdJournalUploadService](#systemdjournaluploadservice)
|
|
90
93
|
* [Properties](#properties-1)
|
|
91
94
|
* [systemdConfigs](#systemdconfigs-1)
|
|
92
|
-
* [Parameters](#parameters-
|
|
95
|
+
* [Parameters](#parameters-17)
|
|
93
96
|
* [priority](#priority-1)
|
|
94
97
|
* [NetworkAddress](#networkaddress)
|
|
95
|
-
* [Parameters](#parameters-
|
|
98
|
+
* [Parameters](#parameters-18)
|
|
96
99
|
* [subnet](#subnet)
|
|
97
100
|
* [networkInterface](#networkinterface)
|
|
98
101
|
* [address](#address)
|
|
99
102
|
* [addresses](#addresses)
|
|
100
|
-
* [Parameters](#parameters-18)
|
|
101
|
-
* [cidrAddresses](#cidraddresses)
|
|
102
103
|
* [Parameters](#parameters-19)
|
|
103
|
-
* [
|
|
104
|
-
* [
|
|
105
|
-
* [Parameters](#parameters-20)
|
|
104
|
+
* [cidrAddresses](#cidraddresses)
|
|
105
|
+
* [Parameters](#parameters-20)
|
|
106
106
|
* [families](#families)
|
|
107
107
|
* [secretName](#secretname)
|
|
108
108
|
* [subnetForAddress](#subnetforaddress)
|
|
@@ -291,6 +291,18 @@ Keeps track of all in flight object creations and loose ends during config initi
|
|
|
291
291
|
|
|
292
292
|
* `directory` (optional, default `"/"`)
|
|
293
293
|
|
|
294
|
+
## SkeletonNetworkInterface
|
|
295
|
+
|
|
296
|
+
**Extends Interface**
|
|
297
|
+
|
|
298
|
+
### networkAddresses
|
|
299
|
+
|
|
300
|
+
#### Parameters
|
|
301
|
+
|
|
302
|
+
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
303
|
+
|
|
304
|
+
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
305
|
+
|
|
294
306
|
## Interface
|
|
295
307
|
|
|
296
308
|
**Extends ServiceOwner**
|
|
@@ -388,18 +400,6 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
|
|
|
388
400
|
|
|
389
401
|
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
390
402
|
|
|
391
|
-
## SkeletonNetworkInterface
|
|
392
|
-
|
|
393
|
-
**Extends Interface**
|
|
394
|
-
|
|
395
|
-
### networkAddresses
|
|
396
|
-
|
|
397
|
-
#### Parameters
|
|
398
|
-
|
|
399
|
-
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
400
|
-
|
|
401
|
-
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
402
|
-
|
|
403
403
|
## families
|
|
404
404
|
|
|
405
405
|
Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.71.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"content-entry-transform": "^1.7.11",
|
|
55
55
|
"filtered-map": "^1.0.0",
|
|
56
56
|
"ip-utilties": "^3.13.1",
|
|
57
|
-
"npm-pkgbuild": "^22.2.
|
|
57
|
+
"npm-pkgbuild": "^22.2.21",
|
|
58
58
|
"pacc": "^14.4.0",
|
|
59
59
|
"package-directory": "^8.2.0",
|
|
60
60
|
"yaml": "^2.9.1"
|
package/src/host.mjs
CHANGED
|
@@ -137,8 +137,8 @@ export class host extends ServiceOwner {
|
|
|
137
137
|
return new AggregatedMap([
|
|
138
138
|
this._services,
|
|
139
139
|
...[...this.networkInterfaces.values()]
|
|
140
|
-
.filter(ni => ni.
|
|
141
|
-
.map(ni => ni.
|
|
140
|
+
.filter(ni => ni._services.size > 0)
|
|
141
|
+
.map(ni => ni._services)
|
|
142
142
|
]);
|
|
143
143
|
}
|
|
144
144
|
|
package/src/owner.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { normalizeCIDR, familyIP, FAMILY_IPV4 } from "ip-utilties";
|
|
2
|
-
import { FileContentProvider } from "npm-pkgbuild";
|
|
3
2
|
import { AggregatedMap } from "aggregated-map";
|
|
4
3
|
import { FilteredMap } from "filtered-map";
|
|
5
4
|
import {
|
|
@@ -20,7 +19,6 @@ import {
|
|
|
20
19
|
networkInterfaces_attribute
|
|
21
20
|
} from "./common-attributes.mjs";
|
|
22
21
|
import { addType, assign } from "./type.mjs";
|
|
23
|
-
import { loadHooks } from "./hooks.mjs";
|
|
24
22
|
|
|
25
23
|
export class owner extends ServiceOwner {
|
|
26
24
|
static priority = 2;
|
|
@@ -251,31 +249,4 @@ export class owner extends ServiceOwner {
|
|
|
251
249
|
|
|
252
250
|
return architectures;
|
|
253
251
|
}
|
|
254
|
-
|
|
255
|
-
async *preparePackages(dir) {
|
|
256
|
-
const packageData = {
|
|
257
|
-
sources: [
|
|
258
|
-
new FileContentProvider(dir + "/"),
|
|
259
|
-
new FileContentProvider(
|
|
260
|
-
{ dir: this.directory, pattern: "location.json" },
|
|
261
|
-
{ destination: "/etc/location/location.json" }
|
|
262
|
-
)
|
|
263
|
-
],
|
|
264
|
-
outputs: this.outputs,
|
|
265
|
-
properties: {
|
|
266
|
-
name: `${this.typeName}-${this.name}`,
|
|
267
|
-
description: `${this.typeName} definitions for ${this.fullName}`,
|
|
268
|
-
access: "private",
|
|
269
|
-
dependencies: { jq: ">=1.6" },
|
|
270
|
-
provides: ["location"]
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
await loadHooks(
|
|
275
|
-
packageData,
|
|
276
|
-
new URL("location.install", import.meta.url).pathname
|
|
277
|
-
);
|
|
278
|
-
|
|
279
|
-
yield packageData;
|
|
280
|
-
}
|
|
281
252
|
}
|
package/src/service-owner.mjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { stringify } from "yaml";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
boolean_attribute_writable_true,
|
|
5
|
+
boolean_attribute_writable_false,
|
|
6
|
+
extract
|
|
7
|
+
} from "pacc";
|
|
4
8
|
import { CoreService, addType } from "pmcf";
|
|
5
9
|
import { writeLines } from "../utils.mjs";
|
|
6
10
|
import { FAMILY_DNS_IPV4_IPV6, PROTOCOL_TCP } from "../constants.mjs";
|
|
@@ -10,10 +14,15 @@ const SCOPE_INFLUXDB = "influxdb";
|
|
|
10
14
|
|
|
11
15
|
export class influxdb extends CoreService {
|
|
12
16
|
static attributes = {
|
|
13
|
-
|
|
17
|
+
"metrics-disabled": {
|
|
14
18
|
...boolean_attribute_writable_true,
|
|
15
|
-
name: "
|
|
16
|
-
|
|
19
|
+
name: "metrics-disabled",
|
|
20
|
+
scope: SCOPE_INFLUXDB,
|
|
21
|
+
sources: SOURCES_THIS_EXTENDS
|
|
22
|
+
},
|
|
23
|
+
"use-hashed-tokens": {
|
|
24
|
+
...boolean_attribute_writable_false,
|
|
25
|
+
name: "use-hashed-tokens",
|
|
17
26
|
scope: SCOPE_INFLUXDB,
|
|
18
27
|
sources: SOURCES_THIS_EXTENDS
|
|
19
28
|
}
|