pmcf 6.1.7 → 6.1.9

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": "6.1.7",
3
+ "version": "6.1.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -257,8 +257,8 @@ export class CoreService extends Base {
257
257
 
258
258
  get packageData() {
259
259
  const packageData = super.packageData;
260
- const name = `${this.owner.name}-${this.host.name}`;
261
- packageData.properties.name = `${this.type}-${name}`;
260
+ const name = `${this.owner.owner.name}-${this.owner.name}`;
261
+ packageData.properties.name = `${this.name}-${name}`;
262
262
  packageData.properties.description = `${this.type} service definitions for ${this.fullName}`;
263
263
  packageData.properties.groups.push("service-config", name);
264
264
  return packageData;
@@ -501,7 +501,7 @@ export class bind extends ExtraSourceService {
501
501
 
502
502
  async writeForwarders(outputControl) {
503
503
  const forwarders = serviceEndpoints(this.source, {
504
- services: 'services[types[dns]" && priority>=100 && priority<200]',
504
+ services: 'services[types[dns] && priority>=100 && priority<200]',
505
505
  endpoints: endpoint => endpoint.family !== "dns",
506
506
  select: e => e.address,
507
507
  limit: 5
@@ -52,7 +52,6 @@ export class chrony extends ExtraSourceService {
52
52
  e.service.host !== host &&
53
53
  e.networkInterface &&
54
54
  e.networkInterface.kind !== "loopback",
55
-
56
55
  select: endpoint => {
57
56
  const options = [
58
57
  endpoint.isPool ? "pool" : "server",
@@ -77,7 +76,7 @@ export class chrony extends ExtraSourceService {
77
76
  "ntsdumpdir /var/lib/chrony",
78
77
  "dumpdir /var/lib/chrony",
79
78
  "pidfile /run/chrony/chronyd.pid",
80
- [...this.values()].map(s => `allow ${s.address}`),
79
+ [...this.subnets.values()].map(s => `allow ${s.address}`),
81
80
  "cmdratelimit interval -4 burst 16",
82
81
  [...this.subnets.values()].map(s => `cmdallow ${s.address}`)
83
82
  ];