pmcf 1.88.0 → 1.88.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cluster.mjs +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.88.0",
3
+ "version": "1.88.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -86,7 +86,9 @@ export class Cluster extends Host {
86
86
  " }",
87
87
  ` smtp_server ${this.smtp.rawAddress}`,
88
88
  ` notification_email_from keepalived@${host.domainName}`,
89
- ` lvs_id ${host.hostName}`,
89
+ " enable_script_security",
90
+ " script_user root",
91
+ " max_auto_priority 20",
90
92
  "}",
91
93
  ""
92
94
  ];
@@ -112,9 +114,9 @@ export class Cluster extends Host {
112
114
  cfg.push(" }");
113
115
 
114
116
 
115
- cfg.push(` notify_master "/usr/bin/systemctl start ${host.name}-master.target"`);
116
- cfg.push(` notify_backup "/usr/bin/systemctl start ${host.name}-backup.target"`);
117
- cfg.push(` notify_fault "/usr/bin/systemctl start ${host.name}-fault.target"`);
117
+ cfg.push(` notify_master "/usr/bin/systemctl start ${cluster.name}-master.target"`);
118
+ cfg.push(` notify_backup "/usr/bin/systemctl start ${cluster.name}-backup.target"`);
119
+ cfg.push(` notify_fault "/usr/bin/systemctl start ${cluster.name}-fault.target"`);
118
120
 
119
121
  cfg.push("}");
120
122
  cfg.push("");