pmcf 1.61.0 → 1.61.2

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": "1.61.0",
3
+ "version": "1.61.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -52,10 +52,8 @@ export class Cluster extends Host {
52
52
  }
53
53
 
54
54
  async *preparePackages(stagingDir) {
55
-
56
55
  const result = {
57
56
  sources: [],
58
- outputs: this.outputs,
59
57
  properties: {
60
58
  description: `${this.typeName} definitions for ${this.fullName}`,
61
59
  access: "private"
@@ -69,7 +67,8 @@ export class Cluster extends Host {
69
67
  }
70
68
 
71
69
  for (const ni of interfaces) {
72
- const name = `keepalived-${ni.host.name}`;
70
+ const host = ni.host;
71
+ const name = `keepalived-${host.name}`;
73
72
  const packageStagingDir = join(stagingDir, name);
74
73
 
75
74
  const cfg = [];
@@ -83,7 +82,7 @@ export class Cluster extends Host {
83
82
  cfg.push(" }");
84
83
  cfg.push(` virtual_router_id ${this.routerId}`);
85
84
  cfg.push(" priority 255");
86
- cfg.push(" advert_int 1");
85
+ cfg.push(" advert_int 5");
87
86
  cfg.push(" authentication {");
88
87
  cfg.push(" auth_type PASS");
89
88
  cfg.push(" auth_pass pass1234");
@@ -98,6 +97,7 @@ export class Cluster extends Host {
98
97
  cfg
99
98
  );
100
99
 
100
+ result.pitputs = host.outputs,
101
101
  result.properties.name = name;
102
102
  result.properties.dependencies = ["keepalived"];
103
103
 
@@ -381,6 +381,13 @@ export class Cluster extends Host {
381
381
  get masters(): Set<any>;
382
382
  set backups(value: Set<any>);
383
383
  get backups(): Set<any>;
384
+ preparePackages(stagingDir: any): AsyncGenerator<{
385
+ sources: any[];
386
+ properties: {
387
+ description: string;
388
+ access: string;
389
+ };
390
+ }, void, unknown>;
384
391
  #private;
385
392
  }
386
393
  import { Host } from "./host.mjs";