pmcf 2.71.5 → 2.71.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.71.5",
3
+ "version": "2.71.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,12 +9,7 @@ import {
9
9
  dnsRecordTypeForAddressFamily,
10
10
  sortZoneRecords
11
11
  } from "../dns-utils.mjs";
12
- import {
13
- ExtraSourceService,
14
- Endpoint,
15
- serviceEndpoints,
16
- addresses
17
- } from "pmcf";
12
+ import { ExtraSourceService, serviceEndpoints, addresses } from "pmcf";
18
13
  import { addType } from "../types.mjs";
19
14
  import { Service, ServiceTypeDefinition } from "../service.mjs";
20
15
  import { ExtraSourceServiceTypeDefinition } from "../extra-source-service.mjs";
@@ -157,6 +152,7 @@ export class BindService extends ExtraSourceService {
157
152
  constructor(owner, data) {
158
153
  super(owner, data);
159
154
 
155
+ this._systemd = "bind.service";
160
156
  this._extends.push(new Service(owner, { name: this.name, type: "dns" }));
161
157
  this.views = {};
162
158
 
@@ -366,14 +362,13 @@ export class BindService extends ExtraSourceService {
366
362
 
367
363
  for (const source of sources) {
368
364
  console.log(
369
- "LOCAL DOMAINS",
370
- source.localDomains,
371
- source.domain,
372
- source.toString()
365
+ "SOURCE",
366
+ source.toString(),
367
+ [...source.localDomains].join(" ")
373
368
  );
374
369
 
375
370
  for (const domain of source.localDomains) {
376
- const locationName = source.name;
371
+ const locationName = source.location.name;
377
372
  const reverseZones = new Map();
378
373
 
379
374
  const config = {
@@ -34,7 +34,7 @@ const ChronyServiceTypeDefinition = {
34
34
  },
35
35
  {
36
36
  family: "unix",
37
- path: "/run/chrony/chronyd.sock"
37
+ path: "/var/run/chrony/chronyd.sock"
38
38
  }
39
39
  ]
40
40
  }
@@ -54,6 +54,8 @@ export class ChronyService extends ExtraSourceService {
54
54
  constructor(owner, data) {
55
55
  super(owner, data);
56
56
  this.read(data, ChronyServiceTypeDefinition);
57
+
58
+ this._systemd = "chronyd.service";
57
59
  }
58
60
 
59
61
  get type() {
@@ -57,6 +57,8 @@ export class OpenLDAPService extends Service {
57
57
  constructor(owner, data) {
58
58
  super(owner, data);
59
59
  this.read(data, OpenLDAPServiceTypeDefinition);
60
+
61
+ this._systemd = "slapd.service";
60
62
  }
61
63
 
62
64
  get type() {
@@ -400,6 +400,7 @@ export class BindService extends ExtraSourceService {
400
400
  retry: number;
401
401
  expire: number;
402
402
  minimum: number;
403
+ _systemd: string;
403
404
  views: {};
404
405
  get soaUpdates(): number[];
405
406
  set addresses(value: any[]);
@@ -285,6 +285,7 @@ export class ChronyService extends ExtraSourceService {
285
285
  };
286
286
  };
287
287
  };
288
+ _systemd: string;
288
289
  preparePackages(dir: any): AsyncGenerator<{
289
290
  dir: any;
290
291
  sources: FileContentProvider[];
@@ -282,6 +282,7 @@ export class OpenLDAPService extends Service {
282
282
  };
283
283
  _baseDN: any;
284
284
  _rootDN: any;
285
+ _systemd: string;
285
286
  get type(): string;
286
287
  set baseDN(value: any);
287
288
  get baseDN(): any;