pmcf 1.64.2 → 1.64.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 +1 -1
- package/src/cluster.mjs +8 -3
package/package.json
CHANGED
package/src/cluster.mjs
CHANGED
|
@@ -75,9 +75,15 @@ 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 = [
|
|
79
|
+
"global_defs {",
|
|
80
|
+
" notification_email {",
|
|
81
|
+
" " + this.administratorEmail,
|
|
82
|
+
" }",
|
|
79
83
|
" smtp_server 192.168.1.1",
|
|
80
|
-
|
|
84
|
+
` notification_email_from keepalived@${host.domainName}`,
|
|
85
|
+
"}"
|
|
86
|
+
];
|
|
81
87
|
|
|
82
88
|
for (const cluster of [...this.owner.clusters()].sort((a, b) =>
|
|
83
89
|
a.name.localeCompare(b.name)
|
|
@@ -101,7 +107,6 @@ export class Cluster extends Host {
|
|
|
101
107
|
cfg.push("");
|
|
102
108
|
|
|
103
109
|
for (const service of cluster.findServices({ type: "http" })) {
|
|
104
|
-
console.log("S", service.host.name, service.name);
|
|
105
110
|
cfg.push(`virtual_server ${cluster.rawAddress} ${service.port} {`);
|
|
106
111
|
cfg.push(" delay_loop 6");
|
|
107
112
|
cfg.push(" lb_algo wlc");
|