pmcf 1.63.0 → 1.63.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cluster.mjs +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.63.0",
3
+ "version": "1.63.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -75,7 +75,9 @@ export class Cluster extends Host {
75
75
  const name = `keepalived-${host.name}`;
76
76
  const packageStagingDir = join(stagingDir, name);
77
77
 
78
- const cfg = [];
78
+ const cfg = ["global_defs {", " notification_email {", " " + this.administratorEmail, " }",
79
+ " smtp_server 192.168.1.1",
80
+ "}"];
79
81
 
80
82
  for (const cluster of [...this.owner.clusters()].sort((a, b) =>
81
83
  a.name.localeCompare(b.name)
@@ -99,7 +101,7 @@ export class Cluster extends Host {
99
101
  cfg.push("");
100
102
 
101
103
  for (const service of cluster.findServices({ type: "http" })) {
102
- console.log("S",service.host.name,service.name);
104
+ console.log("S", service.host.name, service.name);
103
105
  cfg.push(`virtual_server ${cluster.rawAddress} ${service.port} {`);
104
106
  cfg.push(" delay_loop 6");
105
107
  cfg.push(" lb_algo wlc");