pmcf 2.68.0 → 2.68.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.68.0",
3
+ "version": "2.68.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,3 +1,6 @@
1
+ import { join } from "node:path";
2
+ import { FileContentProvider } from "npm-pkgbuild";
3
+ import { writeLines } from "../utils.mjs";
1
4
  import { addType } from "../types.mjs";
2
5
  import { Service, ServiceTypeDefinition } from "../service.mjs";
3
6
 
@@ -36,4 +39,28 @@ export class InfluxdbService extends Service {
36
39
  get type() {
37
40
  return InfluxdbServiceTypeDefinition.name;
38
41
  }
42
+
43
+ async *preparePackages(dir) {
44
+ const network = this.network;
45
+ const host = this.host;
46
+ const name = host.name;
47
+
48
+ const packageData = {
49
+ dir,
50
+ sources: [new FileContentProvider(dir + "/")],
51
+ outputs: this.outputs,
52
+ properties: {
53
+ name: `influxdb-${this.location.name}-${host.name}`,
54
+ description: `influxdb definitions for ${this.fullName}@${name}`,
55
+ access: "private",
56
+ dependencies: ["influxdb>=2.7.0"]
57
+ }
58
+ };
59
+
60
+ const lines = ["metrics-disabled: true"];
61
+
62
+ await writeLines(join(dir, "etc", "influxdb"), "config.yml", lines);
63
+
64
+ yield packageData;
65
+ }
39
66
  }
@@ -261,5 +261,17 @@ export class InfluxdbService extends Service {
261
261
  };
262
262
  };
263
263
  get type(): string;
264
+ preparePackages(dir: any): AsyncGenerator<{
265
+ dir: any;
266
+ sources: FileContentProvider[];
267
+ outputs: Set<typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").DOCKER>;
268
+ properties: {
269
+ name: string;
270
+ description: string;
271
+ access: string;
272
+ dependencies: string[];
273
+ };
274
+ }, void, unknown>;
264
275
  }
265
276
  import { Service } from "../service.mjs";
277
+ import { FileContentProvider } from "npm-pkgbuild";