pmcf 6.54.1 → 6.54.2

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 CHANGED
@@ -81,30 +81,30 @@ generates config packages for:
81
81
  * [domainNames](#domainnames)
82
82
  * [InitializationContext](#initializationcontext)
83
83
  * [Parameters](#parameters-14)
84
- * [SkeletonNetworkInterface](#skeletonnetworkinterface)
85
- * [networkAddresses](#networkaddresses)
86
- * [Parameters](#parameters-15)
87
84
  * [Interface](#interface)
88
85
  * [zones](#zones)
89
86
  * [addressesStatement](#addressesstatement)
90
- * [Parameters](#parameters-16)
87
+ * [Parameters](#parameters-15)
91
88
  * [SystemdJournalRemoteService](#systemdjournalremoteservice)
92
89
  * [Properties](#properties)
93
90
  * [systemdConfigs](#systemdconfigs)
94
- * [Parameters](#parameters-17)
91
+ * [Parameters](#parameters-16)
95
92
  * [SystemdJournalUploadService](#systemdjournaluploadservice)
96
93
  * [Properties](#properties-1)
97
94
  * [systemdConfigs](#systemdconfigs-1)
98
- * [Parameters](#parameters-18)
95
+ * [Parameters](#parameters-17)
99
96
  * [NetworkAddress](#networkaddress)
100
- * [Parameters](#parameters-19)
97
+ * [Parameters](#parameters-18)
101
98
  * [subnet](#subnet)
102
99
  * [networkInterface](#networkinterface)
103
100
  * [address](#address)
104
101
  * [addresses](#addresses)
105
- * [Parameters](#parameters-20)
102
+ * [Parameters](#parameters-19)
106
103
  * [cidrAddresses](#cidraddresses)
107
- * [Parameters](#parameters-21)
104
+ * [Parameters](#parameters-20)
105
+ * [SkeletonNetworkInterface](#skeletonnetworkinterface)
106
+ * [networkAddresses](#networkaddresses)
107
+ * [Parameters](#parameters-21)
108
108
  * [families](#families)
109
109
  * [secretName](#secretname)
110
110
  * [directHosts](#directhosts)
@@ -308,18 +308,6 @@ Keeps track of all in flight object creations and loose ends during config initi
308
308
 
309
309
  * `directory` (optional, default `"/"`)
310
310
 
311
- ## SkeletonNetworkInterface
312
-
313
- **Extends Interface**
314
-
315
- ### networkAddresses
316
-
317
- #### Parameters
318
-
319
- * `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
320
-
321
- Returns **Iterable<[NetworkAddress](#networkaddress)>**&#x20;
322
-
323
311
  ## Interface
324
312
 
325
313
  **Extends ServiceOwner**
@@ -414,6 +402,18 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
414
402
 
415
403
  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)>**&#x20;
416
404
 
405
+ ## SkeletonNetworkInterface
406
+
407
+ **Extends Interface**
408
+
409
+ ### networkAddresses
410
+
411
+ #### Parameters
412
+
413
+ * `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
414
+
415
+ Returns **Iterable<[NetworkAddress](#networkaddress)>**&#x20;
416
+
417
417
  ## families
418
418
 
419
419
  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)>**&#x20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.54.1",
3
+ "version": "6.54.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/content.mjs CHANGED
@@ -289,9 +289,9 @@ export class content extends core {
289
289
 
290
290
  async preparePackage() {
291
291
  const packageData = {
292
- fragments: this.fragments,
293
292
  sources: [],
294
293
  outputs: this.outputs,
294
+ fragments: this.fragments,
295
295
  properties: Object.fromEntries(
296
296
  extendingAttributeIterator(
297
297
  this.constructor,
@@ -102,7 +102,7 @@ export class kea extends CoreService {
102
102
  systemUserName: "kea",
103
103
  systemGroupName: "kea",
104
104
  services: {
105
- "kea-ddns": {
105
+ "kea-dhcp-ddns": {
106
106
  systemdService: "kea-dhcp-ddns.service",
107
107
  endpoints: [
108
108
  {
@@ -112,63 +112,75 @@ export class kea extends CoreService {
112
112
  protocol: PROTOCOL_TCP,
113
113
  tls: false
114
114
  }
115
- ]
116
- },
117
- "kea-ha-4": {
118
- endpoints: [
119
- {
120
- family: FAMILY_IPV4,
121
- port: 53003,
122
- pathname: "/",
123
- protocol: PROTOCOL_TCP,
124
- tls: false
125
- }
126
- ]
127
- },
128
- "kea-ha-6": {
129
- endpoints: [
130
- {
131
- family: FAMILY_IPV6,
132
- port: 53004,
133
- pathname: "/",
134
- protocol: PROTOCOL_TCP,
135
- tls: false
115
+ ],
116
+ services: {
117
+ "kea-control-ddns": {
118
+ endpoints: [
119
+ {
120
+ family: FAMILY_UNIX,
121
+ path: "/run/kea/ctrl-ddns"
122
+ }
123
+ ]
136
124
  }
137
- ]
125
+ }
138
126
  },
139
- "kea-control-dhcp4": {
140
- endpoints: [
141
- {
142
- family: FAMILY_UNIX,
143
- path: "/run/kea/ctrl-4"
144
- }
145
- /*{
127
+ "kea-dhcp4": {
128
+ systemdService: "kea-dhcp4.service",
129
+ services: {
130
+ "kea-ha-4": {
131
+ endpoints: [
132
+ {
133
+ family: FAMILY_IPV4,
134
+ port: 53003,
135
+ pathname: "/",
136
+ protocol: PROTOCOL_TCP,
137
+ tls: false
138
+ }
139
+ ]
140
+ },
141
+ "kea-control-dhcp4": {
142
+ endpoints: [
143
+ {
144
+ family: FAMILY_UNIX,
145
+ path: "/run/kea/ctrl-4"
146
+ }
147
+ /*{
146
148
  family: FAMILY_IPV4,
147
149
  port: 53005,
148
150
  pathname: "/"
149
151
  }*/
150
- ]
151
- },
152
- "kea-control-dhcp6": {
153
- endpoints: [
154
- {
155
- family: FAMILY_UNIX,
156
- path: "/run/kea/ctrl-6"
152
+ ]
157
153
  }
158
- /*{
154
+ }
155
+ },
156
+ "kea-dhcp6": {
157
+ systemdService: "kea-dhcp6.service",
158
+ services: {
159
+ "kea-ha-6": {
160
+ endpoints: [
161
+ {
162
+ family: FAMILY_IPV6,
163
+ port: 53004,
164
+ pathname: "/",
165
+ protocol: PROTOCOL_TCP,
166
+ tls: false
167
+ }
168
+ ]
169
+ },
170
+ "kea-control-dhcp6": {
171
+ endpoints: [
172
+ {
173
+ family: FAMILY_UNIX,
174
+ path: "/run/kea/ctrl-6"
175
+ }
176
+ /*{
159
177
  family: FAMILY_IPV6,
160
178
  port: 53005,
161
179
  pathname: "/"
162
180
  }*/
163
- ]
164
- },
165
- "kea-control-ddns": {
166
- endpoints: [
167
- {
168
- family: FAMILY_UNIX,
169
- path: "/run/kea/ctrl-ddns"
181
+ ]
170
182
  }
171
- ]
183
+ }
172
184
  }
173
185
  }
174
186
  };
@@ -319,19 +331,6 @@ export class kea extends CoreService {
319
331
  }
320
332
  ];
321
333
 
322
- /*const ctrlAgent = {
323
- "Control-agent": {
324
- "http-host": ctrlAgentEndpoint.hostname,
325
- "http-port": ctrlAgentEndpoint.port,
326
- "control-sockets": {
327
- dhcp4: toSocket(this.endpoint("kea-control-dhcp4")),
328
- dhcp6: toSocket(this.endpoint("kea-control-dhcp6")),
329
- d2: toSocket(this.endpoint("kea-control-ddns"))
330
- },
331
- loggers
332
- }
333
- };*/
334
-
335
334
  const dnsServersSlot = names =>
336
335
  names.map(name => {
337
336
  return {
@@ -348,7 +347,7 @@ export class kea extends CoreService {
348
347
  };
349
348
  });
350
349
 
351
- const ddnsEndpoint = this.endpoint("kea-ddns");
350
+ const ddnsEndpoint = this.endpoint("kea-dhcp-ddns");
352
351
 
353
352
  const ddns = {
354
353
  DhcpDdns: {
@@ -405,18 +404,18 @@ export class kea extends CoreService {
405
404
 
406
405
  if (addr && subnet.matchesAddress(addr)) {
407
406
  ip =
408
- family == 6 ? { "ip-addresses": [addr] } : { "ip-address": addr };
407
+ family === "6" ? { "ip-addresses": [addr] } : { "ip-address": addr };
409
408
  }
410
409
 
411
410
  let ids = { "hw-address": k };
412
411
 
413
- if (family == 4) {
412
+ if (family === "4") {
414
413
  const dhcpClientId = networkInterface.dhcpClientId;
415
414
  if (dhcpClientId) {
416
415
  ids = { "client-id": dhcpClientId };
417
416
  }
418
417
  }
419
-
418
+
420
419
  return {
421
420
  ...ids,
422
421
  ...ip,