pmcf 6.13.0 → 6.14.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/README.md +7 -0
- package/package.json +4 -4
- package/src/services/bind.mjs +8 -17
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ generates config packages for:
|
|
|
80
80
|
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
81
81
|
* [networkAddresses](#networkaddresses)
|
|
82
82
|
* [Parameters](#parameters-14)
|
|
83
|
+
* [type](#type)
|
|
83
84
|
* [SystemdJournalRemoteService](#systemdjournalremoteservice)
|
|
84
85
|
* [Properties](#properties)
|
|
85
86
|
* [systemdConfigs](#systemdconfigs)
|
|
@@ -298,6 +299,12 @@ Keeps track of all in flight object creations and loose ends during config initi
|
|
|
298
299
|
|
|
299
300
|
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
300
301
|
|
|
302
|
+
## type
|
|
303
|
+
|
|
304
|
+
Type of the group.
|
|
305
|
+
|
|
306
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** view | unknown
|
|
307
|
+
|
|
301
308
|
## SystemdJournalRemoteService
|
|
302
309
|
|
|
303
310
|
**Extends CoreService**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"lint:docs": "documentation lint ./src**/*.mjs"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"aggregated-map": "^1.0.
|
|
53
|
+
"aggregated-map": "^1.0.8",
|
|
54
54
|
"content-entry-transform": "^1.6.9",
|
|
55
|
-
"ip-utilties": "^3.8.
|
|
56
|
-
"npm-pkgbuild": "^20.8.
|
|
55
|
+
"ip-utilties": "^3.8.1",
|
|
56
|
+
"npm-pkgbuild": "^20.8.6",
|
|
57
57
|
"pacc": "^10.4.1",
|
|
58
58
|
"package-directory": "^8.2.0",
|
|
59
59
|
"yaml": "^2.9.0"
|
package/src/services/bind.mjs
CHANGED
|
@@ -135,6 +135,10 @@ class bind_group extends Base {
|
|
|
135
135
|
return "unknown";
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
get order() {
|
|
139
|
+
return this.sharedWith ? this.sharedWith.order + 1 : 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
138
142
|
get service() {
|
|
139
143
|
return this.owner;
|
|
140
144
|
}
|
|
@@ -167,13 +171,14 @@ class bind_group extends Base {
|
|
|
167
171
|
|
|
168
172
|
async packageContent(outputControl) {
|
|
169
173
|
outputControl.packageData.sources.push(
|
|
170
|
-
...(await Array.fromAsync(
|
|
174
|
+
...(await Array.fromAsync(
|
|
175
|
+
this.templateContent(...outputControl.permissions)
|
|
176
|
+
))
|
|
171
177
|
);
|
|
172
178
|
|
|
173
179
|
return (
|
|
174
180
|
await Promise.all([
|
|
175
181
|
this.generateACLs(outputControl),
|
|
176
|
-
this.generateTypeDefinition(outputControl),
|
|
177
182
|
this.generateZoneDefs(outputControl, this.entries)
|
|
178
183
|
])
|
|
179
184
|
).find(r => r)
|
|
@@ -181,20 +186,6 @@ class bind_group extends Base {
|
|
|
181
186
|
: false;
|
|
182
187
|
}
|
|
183
188
|
|
|
184
|
-
async generateTypeDefinition(outputControl) {
|
|
185
|
-
if (this.type === "view") {
|
|
186
|
-
await writeLines(
|
|
187
|
-
join(outputControl.dir, "etc/named/views"),
|
|
188
|
-
`gen-${this.name}.conf`,
|
|
189
|
-
[
|
|
190
|
-
`view ${this.name} {`,
|
|
191
|
-
`include "/etc/named/views/${this.name}/*.conf";`,
|
|
192
|
-
"};"
|
|
193
|
-
]
|
|
194
|
-
);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
189
|
async generateACLs(outputControl) {
|
|
199
190
|
const acls = addressesStatement(
|
|
200
191
|
`acl ${this.name}`,
|
|
@@ -643,5 +634,5 @@ export class bind extends ExtraSourceService {
|
|
|
643
634
|
}
|
|
644
635
|
|
|
645
636
|
function newOutputControl(packageData, dir, permissions) {
|
|
646
|
-
return { configs: [], catalogs: new Map(), packageData, dir, permissions};
|
|
637
|
+
return { configs: [], catalogs: new Map(), packageData, dir, permissions };
|
|
647
638
|
}
|