pmcf 6.9.1 → 6.10.0
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 +1 -1
- package/src/core-service.mjs +20 -2
- package/src/services/bind.mjs +8 -0
package/package.json
CHANGED
package/src/cluster.mjs
CHANGED
|
@@ -64,7 +64,7 @@ export class Cluster extends Host {
|
|
|
64
64
|
);
|
|
65
65
|
packageData.properties.name = `keepalived-${name}`;
|
|
66
66
|
packageData.properties.description = `${this.typeName} definitions for ${this.fullName}`;
|
|
67
|
-
packageData.properties.groups.push("
|
|
67
|
+
packageData.properties.groups.push("config", name, "keepalived");
|
|
68
68
|
|
|
69
69
|
const extra = [];
|
|
70
70
|
|
package/src/core-service.mjs
CHANGED
|
@@ -75,7 +75,9 @@ export class CoreService extends Base {
|
|
|
75
75
|
alias: { ...string_attribute_writable, name: "alias" },
|
|
76
76
|
priority: priority_attribute,
|
|
77
77
|
weight: { ...number_attribute_writable, name: "weight" /*default: 1*/ },
|
|
78
|
-
systemdService: { ...string_attribute_writable, name: "systemdService" }
|
|
78
|
+
systemdService: { ...string_attribute_writable, name: "systemdService" },
|
|
79
|
+
systemUserName: { ...string_attribute_writable, name: "systemUserName" },
|
|
80
|
+
systemGroupName: { ...string_attribute_writable, name: "systemGroupName" }
|
|
79
81
|
};
|
|
80
82
|
|
|
81
83
|
static {
|
|
@@ -91,6 +93,22 @@ export class CoreService extends Base {
|
|
|
91
93
|
return `${this.fullName}(${this.type})`;
|
|
92
94
|
}
|
|
93
95
|
|
|
96
|
+
set systemUserName(value) {
|
|
97
|
+
this._systemUserName = value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
get systemUserName() {
|
|
101
|
+
return this.attribute("_systemUserName") ?? super.systemUserName;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
set systemGroupName(value) {
|
|
105
|
+
this._systemGroupName = value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
get systemGroupName() {
|
|
109
|
+
return this.attribute("_systemGroupName") ?? super.systemGroupName;
|
|
110
|
+
}
|
|
111
|
+
|
|
94
112
|
get network() {
|
|
95
113
|
return this.host.network;
|
|
96
114
|
}
|
|
@@ -262,7 +280,7 @@ export class CoreService extends Base {
|
|
|
262
280
|
const name = `${this.owner.owner.name}-${this.owner.name}`;
|
|
263
281
|
packageData.properties.name = `${this.name}-${name}`;
|
|
264
282
|
packageData.properties.description = `${this.type} service definitions for ${this.fullName}`;
|
|
265
|
-
packageData.properties.groups.push("
|
|
283
|
+
packageData.properties.groups.push("config", name);
|
|
266
284
|
return packageData;
|
|
267
285
|
}
|
|
268
286
|
|
package/src/services/bind.mjs
CHANGED
|
@@ -479,6 +479,14 @@ export class bind extends ExtraSourceService {
|
|
|
479
479
|
return this.primaries ? "secondary" : "primary";
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
+
get systemUserName() {
|
|
483
|
+
return "named";
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
get systemGroupName() {
|
|
487
|
+
return "named";
|
|
488
|
+
}
|
|
489
|
+
|
|
482
490
|
async writeForwarders(outputControl) {
|
|
483
491
|
const forwarders = serviceEndpoints(this.source, {
|
|
484
492
|
services: "services[types[dns] && priority>=100 && priority<200]",
|