pmcf 2.66.0 → 2.66.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.66.0",
3
+ "version": "2.66.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -91,7 +91,7 @@ const BindServiceTypeDefinition = {
91
91
  };
92
92
 
93
93
  const BindServiceTypes = {
94
- "bind": {
94
+ [BindServiceTypeDefinition.name]: {
95
95
  extends: ["dns"]
96
96
  },
97
97
  "bind-statistics": {
@@ -169,7 +169,7 @@ export class BindService extends ExtraSourceService {
169
169
  }
170
170
 
171
171
  get type() {
172
- return "bind";
172
+ return BindServiceTypeDefinition.name;
173
173
  }
174
174
 
175
175
  get serviceTypeEndpoints() {
@@ -7,6 +7,7 @@ import {
7
7
  ExtraSourceServiceTypeDefinition
8
8
  } from "../extra-source-service.mjs";
9
9
  import { writeLines } from "../utils.mjs";
10
+ import { addServiceTypes } from "../service-types.mjs";
10
11
 
11
12
  const ChronyServiceTypeDefinition = {
12
13
  name: "chrony",
@@ -17,9 +18,16 @@ const ChronyServiceTypeDefinition = {
17
18
  properties: {}
18
19
  };
19
20
 
21
+ const ChronyServiceTypes = {
22
+ "chrony": {
23
+ extends: ["ntp"]
24
+ }
25
+ };
26
+
20
27
  export class ChronyService extends ExtraSourceService {
21
28
  static {
22
29
  addType(this);
30
+ addServiceTypes(ChronyServiceTypes);
23
31
  }
24
32
 
25
33
  static get typeDefinition() {
@@ -32,7 +40,7 @@ export class ChronyService extends ExtraSourceService {
32
40
  }
33
41
 
34
42
  get type() {
35
- return "ntp"; //ChronyServiceTypeDefinition.name;
43
+ return ChronyServiceTypeDefinition.name;
36
44
  }
37
45
 
38
46
  async *preparePackages(dir) {
@@ -57,7 +65,7 @@ export class ChronyService extends ExtraSourceService {
57
65
  const lines = [
58
66
  ...serviceEndpoints(this, {
59
67
  services: {
60
- type: "ntp",
68
+ types: "ntp",
61
69
  priority: ">=200"
62
70
  },
63
71
  endpoints: e =>
@@ -31,7 +31,7 @@ export class OpenLDAPService extends Service {
31
31
  }
32
32
 
33
33
  get type() {
34
- return "openldap";
34
+ return OpenLDAPServiceTypeDefinition.name;
35
35
  }
36
36
 
37
37
  async *preparePackages(dir) {
@@ -1,5 +1,6 @@
1
1
  import { Service, ServiceTypeDefinition } from "pmcf";
2
2
  import { addType } from "../types.mjs";
3
+ import { addServiceTypes } from "../service-types.mjs";
3
4
 
4
5
  const SystemdJournalRemoteServiceTypeDefinition = {
5
6
  name: "systemd-journal-remote",
@@ -10,9 +11,23 @@ const SystemdJournalRemoteServiceTypeDefinition = {
10
11
  properties: {}
11
12
  };
12
13
 
14
+ const SystemdJournalRemoteServiceTypes = {
15
+ [SystemdJournalRemoteServiceTypeDefinition.name]: {
16
+ extends: ["http"],
17
+ endpoints: [
18
+ {
19
+ port: 19532,
20
+ protocol: "tcp",
21
+ tls: false
22
+ }
23
+ ]
24
+ }
25
+ };
26
+
13
27
  export class SystemdJournalRemoteService extends Service {
14
28
  static {
15
29
  addType(this);
30
+ addServiceTypes(SystemdJournalRemoteServiceTypes);
16
31
  }
17
32
 
18
33
  static get typeDefinition() {