pmcf 6.21.3 → 6.21.5
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 +1 -1
- package/src/base.mjs +22 -3
- package/src/core-service.mjs +5 -2
- package/src/services/openldap.mjs +2 -19
package/README.md
CHANGED
|
@@ -78,30 +78,30 @@ generates config packages for:
|
|
|
78
78
|
* [domainNames](#domainnames)
|
|
79
79
|
* [InitializationContext](#initializationcontext)
|
|
80
80
|
* [Parameters](#parameters-14)
|
|
81
|
-
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
82
|
-
* [networkAddresses](#networkaddresses)
|
|
83
|
-
* [Parameters](#parameters-15)
|
|
84
81
|
* [zones](#zones)
|
|
85
82
|
* [type](#type)
|
|
86
83
|
* [addressesStatement](#addressesstatement)
|
|
87
|
-
* [Parameters](#parameters-
|
|
84
|
+
* [Parameters](#parameters-15)
|
|
88
85
|
* [SystemdJournalRemoteService](#systemdjournalremoteservice)
|
|
89
86
|
* [Properties](#properties)
|
|
90
87
|
* [systemdConfigs](#systemdconfigs)
|
|
91
|
-
* [Parameters](#parameters-
|
|
88
|
+
* [Parameters](#parameters-16)
|
|
92
89
|
* [SystemdJournalUploadService](#systemdjournaluploadservice)
|
|
93
90
|
* [Properties](#properties-1)
|
|
94
91
|
* [systemdConfigs](#systemdconfigs-1)
|
|
95
|
-
* [Parameters](#parameters-
|
|
92
|
+
* [Parameters](#parameters-17)
|
|
96
93
|
* [NetworkAddress](#networkaddress)
|
|
97
|
-
* [Parameters](#parameters-
|
|
94
|
+
* [Parameters](#parameters-18)
|
|
98
95
|
* [subnet](#subnet)
|
|
99
96
|
* [networkInterface](#networkinterface)
|
|
100
97
|
* [address](#address)
|
|
101
98
|
* [addresses](#addresses)
|
|
102
|
-
* [Parameters](#parameters-
|
|
99
|
+
* [Parameters](#parameters-19)
|
|
103
100
|
* [cidrAddresses](#cidraddresses)
|
|
104
|
-
* [Parameters](#parameters-
|
|
101
|
+
* [Parameters](#parameters-20)
|
|
102
|
+
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
103
|
+
* [networkAddresses](#networkaddresses)
|
|
104
|
+
* [Parameters](#parameters-21)
|
|
105
105
|
* [families](#families)
|
|
106
106
|
* [secretName](#secretname)
|
|
107
107
|
* [directHosts](#directhosts)
|
|
@@ -296,18 +296,6 @@ Keeps track of all in flight object creations and loose ends during config initi
|
|
|
296
296
|
|
|
297
297
|
* `directory` (optional, default `"/"`)
|
|
298
298
|
|
|
299
|
-
## SkeletonNetworkInterface
|
|
300
|
-
|
|
301
|
-
**Extends ServiceOwner**
|
|
302
|
-
|
|
303
|
-
### networkAddresses
|
|
304
|
-
|
|
305
|
-
#### Parameters
|
|
306
|
-
|
|
307
|
-
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
308
|
-
|
|
309
|
-
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
310
|
-
|
|
311
299
|
## zones
|
|
312
300
|
|
|
313
301
|
Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<bind\_zone>
|
|
@@ -404,6 +392,18 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
|
|
|
404
392
|
|
|
405
393
|
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)>** 
|
|
406
394
|
|
|
395
|
+
## SkeletonNetworkInterface
|
|
396
|
+
|
|
397
|
+
**Extends ServiceOwner**
|
|
398
|
+
|
|
399
|
+
### networkAddresses
|
|
400
|
+
|
|
401
|
+
#### Parameters
|
|
402
|
+
|
|
403
|
+
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
404
|
+
|
|
405
|
+
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
406
|
+
|
|
407
407
|
## families
|
|
408
408
|
|
|
409
409
|
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
package/src/base.mjs
CHANGED
|
@@ -112,14 +112,14 @@ export class Base {
|
|
|
112
112
|
this.constructor,
|
|
113
113
|
attribute => attribute.collection && !attribute.type.primitive
|
|
114
114
|
)) {
|
|
115
|
-
const collection = this[
|
|
115
|
+
const collection = this[attribute.name];
|
|
116
116
|
if (typeof collection?.get === "function") {
|
|
117
117
|
for (const [name, extending] of this.mapFromDirections(
|
|
118
118
|
["extends"],
|
|
119
|
-
|
|
119
|
+
attribute.name
|
|
120
120
|
)) {
|
|
121
121
|
const present = collection.get(extending.name);
|
|
122
|
-
|
|
122
|
+
//console.log("ME",this.fullName,attribute.name,extending.name);
|
|
123
123
|
if (present) {
|
|
124
124
|
present.extends.add(extending);
|
|
125
125
|
present.materializeExtends();
|
|
@@ -128,6 +128,25 @@ export class Base {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
+
/*
|
|
132
|
+
else {
|
|
133
|
+
if (collection instanceof Set) {
|
|
134
|
+
for (const all of this.unionFromDirections(["extends"], attribute.name)) {
|
|
135
|
+
if (all instanceof Set) {
|
|
136
|
+
const d = collection.difference(all);
|
|
137
|
+
|
|
138
|
+
// if (d.size) {
|
|
139
|
+
console.log("ME", this.fullName, attribute.name, d);
|
|
140
|
+
// }
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
// console.error("NO SET",this.fullName, attribute.name, typeof all, all.constructor.name);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
//console.log("NO MAP OR SET", this.fullName, name);
|
|
148
|
+
}
|
|
149
|
+
}*/
|
|
131
150
|
}
|
|
132
151
|
}
|
|
133
152
|
|
package/src/core-service.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
FAMILY_UNIX,
|
|
21
21
|
FAMILY_DNS
|
|
22
22
|
} from "pmcf";
|
|
23
|
-
import { asArray
|
|
23
|
+
import { asArray } from "./utils.mjs";
|
|
24
24
|
import { networkAddressAttributes } from "./common-attributes.mjs";
|
|
25
25
|
import {
|
|
26
26
|
serviceTypeEndpoints,
|
|
@@ -282,7 +282,10 @@ export class CoreService extends Base {
|
|
|
282
282
|
|
|
283
283
|
async *preparePackages(dir) {
|
|
284
284
|
const pd = this.packageData;
|
|
285
|
-
|
|
285
|
+
|
|
286
|
+
pd.sources = await Array.fromAsync(
|
|
287
|
+
this.templateContent(...this.packageContentPermissions)
|
|
288
|
+
);
|
|
286
289
|
if (pd.sources.length) {
|
|
287
290
|
yield pd;
|
|
288
291
|
}
|
|
@@ -8,6 +8,8 @@ export class openldap extends CoreService {
|
|
|
8
8
|
};
|
|
9
9
|
static service = {
|
|
10
10
|
systemdService: "slapd.service",
|
|
11
|
+
systemUserName: "ldap",
|
|
12
|
+
systemGroupName: "ldap",
|
|
11
13
|
extends: ["ldap", "ldapi"]
|
|
12
14
|
};
|
|
13
15
|
|
|
@@ -32,23 +34,4 @@ export class openldap extends CoreService {
|
|
|
32
34
|
set uri(value) {
|
|
33
35
|
this._uri = value;
|
|
34
36
|
}
|
|
35
|
-
|
|
36
|
-
get systemUserName() {
|
|
37
|
-
return "ldap";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
get systemGroupName() {
|
|
41
|
-
return "ldap";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
async *preparePackages(dir) {
|
|
45
|
-
const permissions = this.packageContentPermissions;
|
|
46
|
-
const packageData = this.packageData;
|
|
47
|
-
|
|
48
|
-
packageData.sources = await Array.fromAsync(
|
|
49
|
-
this.templateContent(...permissions)
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
yield packageData;
|
|
53
|
-
}
|
|
54
37
|
}
|