pmcf 1.103.1 → 2.0.1
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/host.mjs +0 -10
- package/src/service.mjs +2 -7
- package/types/cluster.d.mts +0 -5
- package/types/host.d.mts +0 -8
- package/types/service.d.mts +0 -11
package/package.json
CHANGED
package/src/host.mjs
CHANGED
|
@@ -44,7 +44,6 @@ const HostTypeDefinition = {
|
|
|
44
44
|
"machine-id": { type: "string", collection: false, writeable: true },
|
|
45
45
|
distribution: { type: "string", collection: false, writeable: true },
|
|
46
46
|
deployment: { type: "string", collection: false, writeable: true },
|
|
47
|
-
master: { type: "boolean", collection: false, writeable: true },
|
|
48
47
|
weight: { type: "number", collection: false, writeable: true },
|
|
49
48
|
serial: { type: "string", collection: false, writeable: true },
|
|
50
49
|
vendor: { type: "string", collection: false, writeable: true },
|
|
@@ -67,7 +66,6 @@ export class Host extends Base {
|
|
|
67
66
|
_provides = new Set();
|
|
68
67
|
_replaces = new Set();
|
|
69
68
|
_depends = new Set();
|
|
70
|
-
_master = false;
|
|
71
69
|
_os;
|
|
72
70
|
_distribution;
|
|
73
71
|
_deployment;
|
|
@@ -255,14 +253,6 @@ export class Host extends Base {
|
|
|
255
253
|
);
|
|
256
254
|
}
|
|
257
255
|
|
|
258
|
-
set master(value) {
|
|
259
|
-
this._master = value;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
get master() {
|
|
263
|
-
return this._master || this.extends.find(e => e.master) ? true : false;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
256
|
set os(value) {
|
|
267
257
|
this._os = value;
|
|
268
258
|
}
|
package/src/service.mjs
CHANGED
|
@@ -85,7 +85,6 @@ export const ServiceTypeDefinition = {
|
|
|
85
85
|
protocol: { type: "string", collection: false, writeable: true },
|
|
86
86
|
alias: { type: "string", collection: false, writeable: true },
|
|
87
87
|
type: { type: "string", collection: false, writeable: true },
|
|
88
|
-
master: { type: "boolean", collection: false, writeable: true },
|
|
89
88
|
weight: { type: "number", collection: false, writeable: true },
|
|
90
89
|
srvPrefix: { type: "string", collection: false, writeable: false },
|
|
91
90
|
tls: { type: "string", collection: false, writeable: false },
|
|
@@ -178,10 +177,6 @@ export class Service extends Base {
|
|
|
178
177
|
return this._type || this.name;
|
|
179
178
|
}
|
|
180
179
|
|
|
181
|
-
get master() {
|
|
182
|
-
return this.owner.master;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
180
|
get protocol() {
|
|
186
181
|
return ServiceTypes[this.type]?.protocol;
|
|
187
182
|
}
|
|
@@ -203,7 +198,7 @@ export class Service extends Base {
|
|
|
203
198
|
|
|
204
199
|
dnsRecordsForDomainName(domainName, hasSVRRecords) {
|
|
205
200
|
const records = [];
|
|
206
|
-
if (this.
|
|
201
|
+
if (this.priority <= 1 && this.alias) {
|
|
207
202
|
records.push(DNSRecord(this.alias, "CNAME", dnsFullName(domainName)));
|
|
208
203
|
}
|
|
209
204
|
|
|
@@ -212,7 +207,7 @@ export class Service extends Base {
|
|
|
212
207
|
DNSRecord(
|
|
213
208
|
dnsFullName(`${this.srvPrefix}.${domainName}`),
|
|
214
209
|
"SRV",
|
|
215
|
-
this.priority,
|
|
210
|
+
this.priority || 10,
|
|
216
211
|
this.weight,
|
|
217
212
|
this.port,
|
|
218
213
|
dnsFullName(this.domainName)
|
package/types/cluster.d.mts
CHANGED
package/types/host.d.mts
CHANGED
|
@@ -86,11 +86,6 @@ export class Host extends Base {
|
|
|
86
86
|
collection: boolean;
|
|
87
87
|
writeable: boolean;
|
|
88
88
|
};
|
|
89
|
-
master: {
|
|
90
|
-
type: string;
|
|
91
|
-
collection: boolean;
|
|
92
|
-
writeable: boolean;
|
|
93
|
-
};
|
|
94
89
|
weight: {
|
|
95
90
|
type: string;
|
|
96
91
|
collection: boolean;
|
|
@@ -180,7 +175,6 @@ export class Host extends Base {
|
|
|
180
175
|
_provides: Set<any>;
|
|
181
176
|
_replaces: Set<any>;
|
|
182
177
|
_depends: Set<any>;
|
|
183
|
-
_master: boolean;
|
|
184
178
|
_os: any;
|
|
185
179
|
_distribution: any;
|
|
186
180
|
_deployment: any;
|
|
@@ -215,8 +209,6 @@ export class Host extends Base {
|
|
|
215
209
|
get replaces(): any;
|
|
216
210
|
set depends(value: any);
|
|
217
211
|
get depends(): any;
|
|
218
|
-
set master(value: boolean);
|
|
219
|
-
get master(): boolean;
|
|
220
212
|
set os(value: any);
|
|
221
213
|
get os(): any;
|
|
222
214
|
set distribution(value: any);
|
package/types/service.d.mts
CHANGED
|
@@ -78,11 +78,6 @@ export namespace ServiceTypeDefinition {
|
|
|
78
78
|
collection: boolean;
|
|
79
79
|
writeable: boolean;
|
|
80
80
|
};
|
|
81
|
-
master: {
|
|
82
|
-
type: string;
|
|
83
|
-
collection: boolean;
|
|
84
|
-
writeable: boolean;
|
|
85
|
-
};
|
|
86
81
|
weight: {
|
|
87
82
|
type: string;
|
|
88
83
|
collection: boolean;
|
|
@@ -209,11 +204,6 @@ export class Service extends Base {
|
|
|
209
204
|
collection: boolean;
|
|
210
205
|
writeable: boolean;
|
|
211
206
|
};
|
|
212
|
-
master: {
|
|
213
|
-
type: string;
|
|
214
|
-
collection: boolean;
|
|
215
|
-
writeable: boolean;
|
|
216
|
-
};
|
|
217
207
|
weight: {
|
|
218
208
|
type: string;
|
|
219
209
|
collection: boolean;
|
|
@@ -280,7 +270,6 @@ export class Service extends Base {
|
|
|
280
270
|
get weight(): any;
|
|
281
271
|
set type(value: any);
|
|
282
272
|
get type(): any;
|
|
283
|
-
get master(): any;
|
|
284
273
|
get protocol(): any;
|
|
285
274
|
get tls(): any;
|
|
286
275
|
get systemdServices(): any;
|