pmcf 2.66.0 → 2.66.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "2.66.0",
3
+ "version": "2.66.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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 =>
@@ -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
+ "systemd-journal-remote": {
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() {