pmcf 2.66.3 → 2.67.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 +5 -2
- package/src/module.mjs +1 -0
- package/src/services/bind.mjs +16 -31
- package/src/services/chrony.mjs +1 -1
- package/src/services/influxdb.mjs +44 -0
- package/types/module.d.mts +1 -0
- package/types/services/influxdb.d.mts +258 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.67.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"kea",
|
|
21
21
|
"keepalived",
|
|
22
22
|
"openldap",
|
|
23
|
-
"systemd"
|
|
23
|
+
"systemd",
|
|
24
|
+
"chrony",
|
|
25
|
+
"influxdb",
|
|
26
|
+
"openldap"
|
|
24
27
|
],
|
|
25
28
|
"contributors": [
|
|
26
29
|
{
|
package/src/module.mjs
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./services/bind.mjs";
|
|
|
22
22
|
export * from "./services/chrony.mjs";
|
|
23
23
|
export * from "./services/kea.mjs";
|
|
24
24
|
export * from "./services/openldap.mjs";
|
|
25
|
+
export * from "./services/influxdb.mjs";
|
|
25
26
|
export * from "./services/systemd-journal.mjs";
|
|
26
27
|
export * from "./services/systemd-journal-remote.mjs";
|
|
27
28
|
export * from "./services/systemd-journal-upload.mjs";
|
package/src/services/bind.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
addresses
|
|
17
17
|
} from "pmcf";
|
|
18
18
|
import { addType } from "../types.mjs";
|
|
19
|
-
import {
|
|
19
|
+
import { addServiceTypes } from "../service-types.mjs";
|
|
20
20
|
import { Service, ServiceTypeDefinition } from "../service.mjs";
|
|
21
21
|
import { ExtraSourceServiceTypeDefinition } from "../extra-source-service.mjs";
|
|
22
22
|
import { addHook } from "../hooks.mjs";
|
|
@@ -172,10 +172,6 @@ export class BindService extends ExtraSourceService {
|
|
|
172
172
|
return BindServiceTypeDefinition.name;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
get serviceTypeEndpoints() {
|
|
176
|
-
return serviceTypeEndpoints("dns");
|
|
177
|
-
}
|
|
178
|
-
|
|
179
175
|
endpoints(filter) {
|
|
180
176
|
const endpoints = super.endpoints(filter);
|
|
181
177
|
|
|
@@ -311,20 +307,21 @@ export class BindService extends ExtraSourceService {
|
|
|
311
307
|
hooks: {}
|
|
312
308
|
};
|
|
313
309
|
|
|
310
|
+
const filePermissions = [
|
|
311
|
+
{
|
|
312
|
+
mode: 0o644,
|
|
313
|
+
owner: "named",
|
|
314
|
+
group: "named"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
mode: 0o755,
|
|
318
|
+
owner: "named",
|
|
319
|
+
group: "named"
|
|
320
|
+
}
|
|
321
|
+
];
|
|
322
|
+
|
|
314
323
|
packageData.sources = [
|
|
315
|
-
new FileContentProvider(
|
|
316
|
-
zonesPackageDir,
|
|
317
|
-
{
|
|
318
|
-
mode: 0o644,
|
|
319
|
-
owner: "named",
|
|
320
|
-
group: "named"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
mode: 0o755,
|
|
324
|
-
owner: "named",
|
|
325
|
-
group: "named"
|
|
326
|
-
}
|
|
327
|
-
)
|
|
324
|
+
new FileContentProvider(zonesPackageDir, ...filePermissions)
|
|
328
325
|
];
|
|
329
326
|
|
|
330
327
|
yield this.generateZoneDefs(sources, packageData);
|
|
@@ -340,19 +337,7 @@ export class BindService extends ExtraSourceService {
|
|
|
340
337
|
};
|
|
341
338
|
|
|
342
339
|
packageData.sources = [
|
|
343
|
-
new FileContentProvider(
|
|
344
|
-
outfacingZonesPackageDir,
|
|
345
|
-
{
|
|
346
|
-
mode: 0o644,
|
|
347
|
-
owner: "named",
|
|
348
|
-
group: "named"
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
mode: 0o755,
|
|
352
|
-
owner: "named",
|
|
353
|
-
group: "named"
|
|
354
|
-
}
|
|
355
|
-
)
|
|
340
|
+
new FileContentProvider(outfacingZonesPackageDir, ...filePermissions)
|
|
356
341
|
];
|
|
357
342
|
|
|
358
343
|
yield* this.generateOutfacingDefs(sources, packageData);
|
package/src/services/chrony.mjs
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { addType } from "../types.mjs";
|
|
2
|
+
import { Service, ServiceTypeDefinition } from "../service.mjs";
|
|
3
|
+
import { addServiceTypes } from "../service-types.mjs";
|
|
4
|
+
|
|
5
|
+
const InfluxdbServiceTypeDefinition = {
|
|
6
|
+
name: "influxdb",
|
|
7
|
+
specializationOf: ServiceTypeDefinition,
|
|
8
|
+
owners: ServiceTypeDefinition.owners,
|
|
9
|
+
extends: ServiceTypeDefinition,
|
|
10
|
+
priority: 0.1,
|
|
11
|
+
properties: {}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const InfluxdbServiceTypes = {
|
|
15
|
+
[InfluxdbServiceTypeDefinition.name]: {
|
|
16
|
+
endpoints: [
|
|
17
|
+
{
|
|
18
|
+
port: 8086,
|
|
19
|
+
protocol: "tcp",
|
|
20
|
+
tls: false
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export class InfluxdbService extends Service {
|
|
27
|
+
static {
|
|
28
|
+
addType(this);
|
|
29
|
+
addServiceTypes(InfluxdbServiceTypes);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static get typeDefinition() {
|
|
33
|
+
return InfluxdbServiceTypeDefinition;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(owner, data) {
|
|
37
|
+
super(owner, data);
|
|
38
|
+
this.read(data, InfluxdbServiceTypeDefinition);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
get type() {
|
|
42
|
+
return InfluxdbServiceTypeDefinition.name;
|
|
43
|
+
}
|
|
44
|
+
}
|
package/types/module.d.mts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./services/bind.mjs";
|
|
|
22
22
|
export * from "./services/chrony.mjs";
|
|
23
23
|
export * from "./services/kea.mjs";
|
|
24
24
|
export * from "./services/openldap.mjs";
|
|
25
|
+
export * from "./services/influxdb.mjs";
|
|
25
26
|
export * from "./services/systemd-journal.mjs";
|
|
26
27
|
export * from "./services/systemd-journal-remote.mjs";
|
|
27
28
|
export * from "./services/systemd-journal-upload.mjs";
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
export class InfluxdbService extends Service {
|
|
2
|
+
static get typeDefinition(): {
|
|
3
|
+
name: string;
|
|
4
|
+
specializationOf: {
|
|
5
|
+
name: string;
|
|
6
|
+
owners: string[];
|
|
7
|
+
priority: number;
|
|
8
|
+
extends: {
|
|
9
|
+
name: string;
|
|
10
|
+
owners: any[];
|
|
11
|
+
properties: {
|
|
12
|
+
owner: {
|
|
13
|
+
type: string;
|
|
14
|
+
collection: boolean;
|
|
15
|
+
writeable: boolean;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: string;
|
|
19
|
+
collection: boolean;
|
|
20
|
+
writeable: boolean;
|
|
21
|
+
};
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
collection: boolean;
|
|
25
|
+
identifier: boolean;
|
|
26
|
+
writeable: boolean;
|
|
27
|
+
};
|
|
28
|
+
description: {
|
|
29
|
+
type: string;
|
|
30
|
+
collection: boolean;
|
|
31
|
+
writeable: boolean;
|
|
32
|
+
};
|
|
33
|
+
priority: {
|
|
34
|
+
type: string;
|
|
35
|
+
collection: boolean;
|
|
36
|
+
writeable: boolean;
|
|
37
|
+
};
|
|
38
|
+
directory: {
|
|
39
|
+
type: string;
|
|
40
|
+
collection: boolean;
|
|
41
|
+
writeable: boolean;
|
|
42
|
+
};
|
|
43
|
+
packaging: {
|
|
44
|
+
type: string;
|
|
45
|
+
collection: boolean;
|
|
46
|
+
writeable: boolean;
|
|
47
|
+
};
|
|
48
|
+
tags: {
|
|
49
|
+
type: string;
|
|
50
|
+
collection: boolean;
|
|
51
|
+
writeable: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
specializations: {};
|
|
56
|
+
factoryFor(owner: any, value: any): any;
|
|
57
|
+
properties: {
|
|
58
|
+
alias: {
|
|
59
|
+
type: string;
|
|
60
|
+
collection: boolean;
|
|
61
|
+
writeable: boolean;
|
|
62
|
+
};
|
|
63
|
+
weight: {
|
|
64
|
+
type: string;
|
|
65
|
+
collection: boolean;
|
|
66
|
+
writeable: boolean;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
systemd: {
|
|
70
|
+
type: string;
|
|
71
|
+
collection: boolean;
|
|
72
|
+
writeable: boolean;
|
|
73
|
+
};
|
|
74
|
+
port: {
|
|
75
|
+
type: string;
|
|
76
|
+
collection: boolean;
|
|
77
|
+
writeable: boolean;
|
|
78
|
+
};
|
|
79
|
+
protocol: {
|
|
80
|
+
type: string;
|
|
81
|
+
collection: boolean;
|
|
82
|
+
writeable: boolean;
|
|
83
|
+
values: string[];
|
|
84
|
+
};
|
|
85
|
+
type: {
|
|
86
|
+
type: string;
|
|
87
|
+
collection: boolean;
|
|
88
|
+
writeable: boolean;
|
|
89
|
+
};
|
|
90
|
+
types: {
|
|
91
|
+
type: string;
|
|
92
|
+
collection: boolean;
|
|
93
|
+
writeable: boolean;
|
|
94
|
+
};
|
|
95
|
+
tls: {
|
|
96
|
+
type: string;
|
|
97
|
+
collection: boolean;
|
|
98
|
+
writeable: boolean;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
hostName: {
|
|
102
|
+
type: string;
|
|
103
|
+
collection: boolean;
|
|
104
|
+
writeable: boolean;
|
|
105
|
+
};
|
|
106
|
+
cidrAddresses: {
|
|
107
|
+
type: string;
|
|
108
|
+
collection: boolean;
|
|
109
|
+
writeable: boolean;
|
|
110
|
+
};
|
|
111
|
+
cidrAddress: {
|
|
112
|
+
type: string;
|
|
113
|
+
collection: boolean;
|
|
114
|
+
writeable: boolean;
|
|
115
|
+
};
|
|
116
|
+
addresses: {
|
|
117
|
+
type: string;
|
|
118
|
+
collection: boolean;
|
|
119
|
+
writeable: boolean;
|
|
120
|
+
};
|
|
121
|
+
address: {
|
|
122
|
+
type: string;
|
|
123
|
+
collection: boolean;
|
|
124
|
+
writeable: boolean;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
owners: string[];
|
|
129
|
+
extends: {
|
|
130
|
+
name: string;
|
|
131
|
+
owners: string[];
|
|
132
|
+
priority: number;
|
|
133
|
+
extends: {
|
|
134
|
+
name: string;
|
|
135
|
+
owners: any[];
|
|
136
|
+
properties: {
|
|
137
|
+
owner: {
|
|
138
|
+
type: string;
|
|
139
|
+
collection: boolean;
|
|
140
|
+
writeable: boolean;
|
|
141
|
+
};
|
|
142
|
+
type: {
|
|
143
|
+
type: string;
|
|
144
|
+
collection: boolean;
|
|
145
|
+
writeable: boolean;
|
|
146
|
+
};
|
|
147
|
+
name: {
|
|
148
|
+
type: string;
|
|
149
|
+
collection: boolean;
|
|
150
|
+
identifier: boolean;
|
|
151
|
+
writeable: boolean;
|
|
152
|
+
};
|
|
153
|
+
description: {
|
|
154
|
+
type: string;
|
|
155
|
+
collection: boolean;
|
|
156
|
+
writeable: boolean;
|
|
157
|
+
};
|
|
158
|
+
priority: {
|
|
159
|
+
type: string;
|
|
160
|
+
collection: boolean;
|
|
161
|
+
writeable: boolean;
|
|
162
|
+
};
|
|
163
|
+
directory: {
|
|
164
|
+
type: string;
|
|
165
|
+
collection: boolean;
|
|
166
|
+
writeable: boolean;
|
|
167
|
+
};
|
|
168
|
+
packaging: {
|
|
169
|
+
type: string;
|
|
170
|
+
collection: boolean;
|
|
171
|
+
writeable: boolean;
|
|
172
|
+
};
|
|
173
|
+
tags: {
|
|
174
|
+
type: string;
|
|
175
|
+
collection: boolean;
|
|
176
|
+
writeable: boolean;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
specializations: {};
|
|
181
|
+
factoryFor(owner: any, value: any): any;
|
|
182
|
+
properties: {
|
|
183
|
+
alias: {
|
|
184
|
+
type: string;
|
|
185
|
+
collection: boolean;
|
|
186
|
+
writeable: boolean;
|
|
187
|
+
};
|
|
188
|
+
weight: {
|
|
189
|
+
type: string;
|
|
190
|
+
collection: boolean;
|
|
191
|
+
writeable: boolean;
|
|
192
|
+
default: number;
|
|
193
|
+
};
|
|
194
|
+
systemd: {
|
|
195
|
+
type: string;
|
|
196
|
+
collection: boolean;
|
|
197
|
+
writeable: boolean;
|
|
198
|
+
};
|
|
199
|
+
port: {
|
|
200
|
+
type: string;
|
|
201
|
+
collection: boolean;
|
|
202
|
+
writeable: boolean;
|
|
203
|
+
};
|
|
204
|
+
protocol: {
|
|
205
|
+
type: string;
|
|
206
|
+
collection: boolean;
|
|
207
|
+
writeable: boolean;
|
|
208
|
+
values: string[];
|
|
209
|
+
};
|
|
210
|
+
type: {
|
|
211
|
+
type: string;
|
|
212
|
+
collection: boolean;
|
|
213
|
+
writeable: boolean;
|
|
214
|
+
};
|
|
215
|
+
types: {
|
|
216
|
+
type: string;
|
|
217
|
+
collection: boolean;
|
|
218
|
+
writeable: boolean;
|
|
219
|
+
};
|
|
220
|
+
tls: {
|
|
221
|
+
type: string;
|
|
222
|
+
collection: boolean;
|
|
223
|
+
writeable: boolean;
|
|
224
|
+
default: boolean;
|
|
225
|
+
};
|
|
226
|
+
hostName: {
|
|
227
|
+
type: string;
|
|
228
|
+
collection: boolean;
|
|
229
|
+
writeable: boolean;
|
|
230
|
+
};
|
|
231
|
+
cidrAddresses: {
|
|
232
|
+
type: string;
|
|
233
|
+
collection: boolean;
|
|
234
|
+
writeable: boolean;
|
|
235
|
+
};
|
|
236
|
+
cidrAddress: {
|
|
237
|
+
type: string;
|
|
238
|
+
collection: boolean;
|
|
239
|
+
writeable: boolean;
|
|
240
|
+
};
|
|
241
|
+
addresses: {
|
|
242
|
+
type: string;
|
|
243
|
+
collection: boolean;
|
|
244
|
+
writeable: boolean;
|
|
245
|
+
};
|
|
246
|
+
address: {
|
|
247
|
+
type: string;
|
|
248
|
+
collection: boolean;
|
|
249
|
+
writeable: boolean;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
priority: number;
|
|
254
|
+
properties: {};
|
|
255
|
+
};
|
|
256
|
+
get type(): string;
|
|
257
|
+
}
|
|
258
|
+
import { Service } from "../service.mjs";
|