pmcf 6.64.3 → 6.64.5
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
|
@@ -14,8 +14,8 @@ import { CoreService, serviceEndpoints } from "../core-service.mjs";
|
|
|
14
14
|
import { writeLines } from "../utils.mjs";
|
|
15
15
|
|
|
16
16
|
const ROLE_PRIORITIES = {
|
|
17
|
-
master:
|
|
18
|
-
backup:
|
|
17
|
+
master: 0,
|
|
18
|
+
backup: -20
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export class keepalive_cluster_member extends core {
|
|
@@ -141,7 +141,8 @@ export class keepalived extends CoreService {
|
|
|
141
141
|
cfg.push(" advert_int 5");
|
|
142
142
|
cfg.push(" authentication {");
|
|
143
143
|
cfg.push(" auth_type PASS");
|
|
144
|
-
cfg.push(" auth_pass pass1234");
|
|
144
|
+
cfg.push(" # auth_pass pass1234");
|
|
145
|
+
cfg.push(` # auth_pass file:\${_ENV CREDENTIALS_DIRECTORY}/keepalived.${cluster.name}.password`);
|
|
145
146
|
cfg.push(" # auth_pass ${_ENV " + cred.localName + "}");
|
|
146
147
|
cfg.push(" # auth_pass ${" + cred.localName + "}");
|
|
147
148
|
cfg.push(" }");
|