pmcf 2.64.4 → 2.64.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/bin/pmcf-package +4 -4
- package/package.json +1 -1
- package/src/service.mjs +1 -0
- package/src/services/bind.mjs +6 -6
- package/types/services/bind.d.mts +1 -1
package/bin/pmcf-package
CHANGED
|
@@ -44,10 +44,6 @@ for (const object of root.find(args)) {
|
|
|
44
44
|
c => c.name + (c.email ? ` <${c.email}>` : "")
|
|
45
45
|
);
|
|
46
46
|
|
|
47
|
-
if (properties.verbose) {
|
|
48
|
-
console.log(properties);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
47
|
const output = new outputFactory(properties);
|
|
52
48
|
|
|
53
49
|
const artifact = await output.create(
|
|
@@ -57,6 +53,10 @@ for (const object of root.find(args)) {
|
|
|
57
53
|
options
|
|
58
54
|
);
|
|
59
55
|
|
|
56
|
+
if (properties.verbose) {
|
|
57
|
+
console.log(artifact);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
60
|
if (!options.dry) {
|
|
61
61
|
await Promise.all(
|
|
62
62
|
publishingDetails.map(publishDetail =>
|
package/package.json
CHANGED
package/src/service.mjs
CHANGED
|
@@ -14,6 +14,7 @@ const ServiceTypes = {
|
|
|
14
14
|
"pacman-repo": {
|
|
15
15
|
extends: ["https"]
|
|
16
16
|
},
|
|
17
|
+
mqtt: { endpoints: [{ protocol: "tcp", port: 1883, tls: false }] },
|
|
17
18
|
ntp: { endpoints: [{ protocol: "udp", port: 123, tls: false }] },
|
|
18
19
|
dns: { endpoints: [{ protocol: "udp", port: 53, tls: false }] },
|
|
19
20
|
ldap: { endpoints: [{ protocol: "tcp", port: 389, tls: false }] },
|
package/src/services/bind.mjs
CHANGED
|
@@ -282,7 +282,7 @@ export class BindService extends ExtraSourceService {
|
|
|
282
282
|
acls
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
|
-
if (forwarders.length ||
|
|
285
|
+
if (forwarders.length || this.internal?.length) {
|
|
286
286
|
yield packageData;
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -341,10 +341,10 @@ export class BindService extends ExtraSourceService {
|
|
|
341
341
|
)
|
|
342
342
|
];
|
|
343
343
|
|
|
344
|
-
yield this.generateOutfacingDefs(sources, packageData);
|
|
344
|
+
yield* this.generateOutfacingDefs(sources, packageData);
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
async generateOutfacingDefs(sources, packageData) {
|
|
347
|
+
async *generateOutfacingDefs(sources, packageData) {
|
|
348
348
|
const configs = [];
|
|
349
349
|
|
|
350
350
|
for (const source of sources) {
|
|
@@ -365,11 +365,11 @@ export class BindService extends ExtraSourceService {
|
|
|
365
365
|
.map(zone => zone.id)
|
|
366
366
|
.join(" ")}|/usr/bin/named-hostname-update`
|
|
367
367
|
);
|
|
368
|
-
}
|
|
369
368
|
|
|
370
|
-
|
|
369
|
+
await this.writeZones(packageData, configs);
|
|
371
370
|
|
|
372
|
-
|
|
371
|
+
yield packageData;
|
|
372
|
+
}
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
async generateZoneDefs(sources, packageData) {
|
|
@@ -382,7 +382,7 @@ export class BindService extends ExtraSourceService {
|
|
|
382
382
|
set excludeInterfaceKinds(value: Set<any>);
|
|
383
383
|
get excludeInterfaceKinds(): Set<any>;
|
|
384
384
|
preparePackages(dir: any): AsyncGenerator<any, void, unknown>;
|
|
385
|
-
generateOutfacingDefs(sources: any, packageData: any):
|
|
385
|
+
generateOutfacingDefs(sources: any, packageData: any): AsyncGenerator<any, void, unknown>;
|
|
386
386
|
generateZoneDefs(sources: any, packageData: any): Promise<any>;
|
|
387
387
|
outfacingZones(host: any, view: any, records: any): any;
|
|
388
388
|
get defaultRecords(): {
|