pmcf 4.1.2 → 4.1.3

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": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -55,7 +55,7 @@
55
55
  "dependencies": {
56
56
  "ip-utilties": "^2.0.2",
57
57
  "npm-pkgbuild": "^19.1.4",
58
- "pacc": "^8.0.0",
58
+ "pacc": "^8.0.1",
59
59
  "package-directory": "^8.1.0"
60
60
  },
61
61
  "devDependencies": {
@@ -14,7 +14,7 @@ const InfluxdbServiceTypeDefinition = {
14
14
  attributes: {
15
15
  "metrics-disabled": {
16
16
  ...boolean_attribute_writable_true,
17
- isCommonOption: true
17
+ configurable: true
18
18
  }
19
19
  },
20
20
  service: {
@@ -68,7 +68,7 @@ export class InfluxdbService extends Service {
68
68
  const lines = Object.entries(InfluxdbServiceTypeDefinition.attributes)
69
69
  .filter(
70
70
  ([key, attribute]) =>
71
- attribute.isCommonOption && this[key] !== undefined
71
+ attribute.configurable && this[key] !== undefined
72
72
  )
73
73
  .map(([key]) => `${key}: ${this[key]}`);
74
74
 
@@ -27,27 +27,27 @@ const KeaServiceTypeDefinition = {
27
27
  attributes: {
28
28
  "ddns-send-updates": {
29
29
  ...boolean_attribute_writable_true,
30
- isCommonOption: true
30
+ configurable: true
31
31
  },
32
32
  "renew-timer": {
33
33
  ...number_attribute_writable,
34
- isCommonOption: true,
34
+ configurable: true,
35
35
  default: 900
36
36
  },
37
37
  "rebind-timer": {
38
38
  ...number_attribute_writable,
39
- isCommonOption: true,
39
+ configurable: true,
40
40
  default: 1800
41
41
  },
42
42
  "valid-lifetime": {
43
43
  ...number_attribute_writable,
44
44
  mandatory: true,
45
- isCommonOption: true,
45
+ configurable: true,
46
46
  default: 86400
47
47
  },
48
48
  "ddns-conflict-resolution-mode": {
49
49
  ...string_attribute_writable,
50
- isCommonOption: true
50
+ configurable: true
51
51
  //values: ["check-exists-with-dhcid","no-check-with-dhcid"]
52
52
  }
53
53
  },
@@ -282,7 +282,7 @@ export class KeaService extends Service {
282
282
  KeaServiceTypeDefinition.attributes
283
283
  ).filter(
284
284
  ([key, attribute]) =>
285
- attribute.isCommonOption && this[key] !== undefined
285
+ attribute.configurable && this[key] !== undefined
286
286
  )) {
287
287
  cfg[key] = this[key];
288
288
  }
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  addType,
3
3
  object_attribute,
4
+ string_collection_attribute_writable,
4
5
  duration_attribute_writable,
5
6
  string_attribute_writable,
6
7
  boolean_attribute_writable,
@@ -32,7 +33,10 @@ const SystemdResolvedServiceTypeDefinition = {
32
33
  attributes: {*/
33
34
  DNS: { ...string_attribute_writable, configurable: true },
34
35
  FallbackDNS: { ...string_attribute_writable, configurable: true },
35
- Domains: { ...string_attribute_writable, configurable: true },
36
+
37
+ domains: { externalName: "Domains", ...string_collection_attribute_writable, configurable: true },
38
+
39
+
36
40
  MulticastDNS: { ...yesno_attribute_writable, configurable: true },
37
41
  Cache: { ...boolean_attribute_writable, configurable: true },
38
42
  CacheFromLocalhost: {
@@ -83,8 +87,6 @@ export class SystemdResolvedService extends ExtraSourceService {
83
87
  return SystemdResolvedServiceTypeDefinition.name;
84
88
  }
85
89
 
86
- Resolve = {};
87
-
88
90
  systemdConfigs(name) {
89
91
  const options = (lower, upper, limit) => {
90
92
  return {
@@ -99,6 +101,8 @@ export class SystemdResolvedService extends ExtraSourceService {
99
101
  };
100
102
  };
101
103
 
104
+ //console.log([...this.owner.expression('services[in("dns",types) && priority>=300 && priority<=399].owner.name')]);
105
+
102
106
  return {
103
107
  serviceName: this.systemdService,
104
108
  configFileName: `etc/systemd/resolved.conf.d/${name}.conf`,
@@ -106,7 +110,6 @@ export class SystemdResolvedService extends ExtraSourceService {
106
110
  content: sectionLines("Resolve", {
107
111
  DNS: serviceEndpoints(this, options(300, 399, 4)),
108
112
  FallbackDNS: serviceEndpoints(this, options(100, 199, 4)),
109
- Domains: [...this.localDomains].join(" "),
110
113
  MulticastDNS: yesno(this.network.multicastDNS),
111
114
  ...this.getProperties(filterConfigurable)
112
115
  })
@@ -744,7 +744,7 @@ export class InfluxdbService extends Service {
744
744
  key: string;
745
745
  attributes: {
746
746
  "metrics-disabled": {
747
- isCommonOption: boolean;
747
+ configurable: boolean;
748
748
  type: object;
749
749
  isKey: boolean;
750
750
  writable: boolean;
@@ -744,7 +744,7 @@ export class KeaService extends Service {
744
744
  key: string;
745
745
  attributes: {
746
746
  "ddns-send-updates": {
747
- isCommonOption: boolean;
747
+ configurable: boolean;
748
748
  type: object;
749
749
  isKey: boolean;
750
750
  writable: boolean;
@@ -766,7 +766,7 @@ export class KeaService extends Service {
766
766
  additionalValues?: object;
767
767
  };
768
768
  "renew-timer": {
769
- isCommonOption: boolean;
769
+ configurable: boolean;
770
770
  default: number;
771
771
  type: object;
772
772
  isKey: boolean;
@@ -788,7 +788,7 @@ export class KeaService extends Service {
788
788
  additionalValues?: object;
789
789
  };
790
790
  "rebind-timer": {
791
- isCommonOption: boolean;
791
+ configurable: boolean;
792
792
  default: number;
793
793
  type: object;
794
794
  isKey: boolean;
@@ -811,7 +811,7 @@ export class KeaService extends Service {
811
811
  };
812
812
  "valid-lifetime": {
813
813
  mandatory: boolean;
814
- isCommonOption: boolean;
814
+ configurable: boolean;
815
815
  default: number;
816
816
  type: object;
817
817
  isKey: boolean;
@@ -832,7 +832,7 @@ export class KeaService extends Service {
832
832
  additionalValues?: object;
833
833
  };
834
834
  "ddns-conflict-resolution-mode": {
835
- isCommonOption: boolean;
835
+ configurable: boolean;
836
836
  type: object;
837
837
  isKey: boolean;
838
838
  writable: boolean;
@@ -1279,7 +1279,7 @@ export class SystemdResolvedService extends ExtraSourceService {
1279
1279
  env?: string[] | string;
1280
1280
  additionalValues?: object;
1281
1281
  };
1282
- Domains: {
1282
+ domains: {
1283
1283
  configurable: boolean;
1284
1284
  type: object;
1285
1285
  isKey: boolean;
@@ -1297,7 +1297,7 @@ export class SystemdResolvedService extends ExtraSourceService {
1297
1297
  toInternal?: Function;
1298
1298
  toExternal?: Function;
1299
1299
  values?: Set<any>;
1300
- externalName?: string;
1300
+ externalName: string;
1301
1301
  env?: string[] | string;
1302
1302
  additionalValues?: object;
1303
1303
  };
@@ -1503,7 +1503,6 @@ export class SystemdResolvedService extends ExtraSourceService {
1503
1503
  systemdService: string;
1504
1504
  };
1505
1505
  };
1506
- Resolve: {};
1507
1506
  systemdConfigs(name: any): {
1508
1507
  serviceName: any;
1509
1508
  configFileName: string;