pmcf 1.88.3 → 1.88.4
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
|
@@ -163,7 +163,9 @@ export class Cluster extends Host {
|
|
|
163
163
|
`${this.name}-master.target`,
|
|
164
164
|
[
|
|
165
165
|
"[Unit]",
|
|
166
|
-
`Description=Services to be activated in master state of cluster ${this.name}
|
|
166
|
+
`Description=Services to be activated in master state of cluster ${this.name}`,
|
|
167
|
+
"PartOf=keepalived.service",
|
|
168
|
+
`Conflicts=${this.name}-fault.target`
|
|
167
169
|
]
|
|
168
170
|
);
|
|
169
171
|
|
|
@@ -172,7 +174,9 @@ export class Cluster extends Host {
|
|
|
172
174
|
`${this.name}-backup.target`,
|
|
173
175
|
[
|
|
174
176
|
"[Unit]",
|
|
175
|
-
`Description=Services to be activated in backup state of cluster ${this.name}
|
|
177
|
+
`Description=Services to be activated in backup state of cluster ${this.name}`,
|
|
178
|
+
"PartOf=keepalived.service",
|
|
179
|
+
`Conflicts=${this.name}-fault.target`
|
|
176
180
|
]
|
|
177
181
|
);
|
|
178
182
|
|
|
@@ -181,7 +185,8 @@ export class Cluster extends Host {
|
|
|
181
185
|
`${this.name}-fault.target`,
|
|
182
186
|
[
|
|
183
187
|
"[Unit]",
|
|
184
|
-
`Description=Services to be activated in fault state of cluster ${this.name}
|
|
188
|
+
`Description=Services to be activated in fault state of cluster ${this.name}`,
|
|
189
|
+
`Conflicts=${this.name}-master.target ${this.name}-backup.target`,
|
|
185
190
|
]
|
|
186
191
|
);
|
|
187
192
|
|