pmcf 2.6.2 → 2.6.4

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.6.2",
3
+ "version": "2.6.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -64,7 +64,7 @@ export class Cluster extends Host {
64
64
  new Set()
65
65
  )) {
66
66
  const host = ni.host;
67
- const name = `keepalived-${host.name}`;
67
+ const name = `keepalived-${host.location.name}-${host.name}`;
68
68
  const packageStagingDir = join(stagingDir, name);
69
69
  const result = {
70
70
  sources: [
@@ -77,7 +77,8 @@ export class Cluster extends Host {
77
77
  name,
78
78
  description: `${this.typeName} definitions for ${this.fullName}`,
79
79
  access: "private",
80
- dependencies: ["keepalived>=2.3.3"]
80
+ dependencies: ["keepalived>=2.3.3"],
81
+ replaces: [`keepalived-${host.name}`]
81
82
  }
82
83
  };
83
84
 
@@ -3,7 +3,7 @@ export const networkProperties = {
3
3
  type: "string",
4
4
  collection: false,
5
5
  writeable: true,
6
- values: ["global", "site", "link", "local"]
6
+ values: ["global", "site", "link", "host"]
7
7
  },
8
8
  kind: {
9
9
  type: "string",
@@ -47,11 +47,11 @@ export class DHCPService extends Service {
47
47
  sources: [new FileContentProvider(dir + "/")[Symbol.asyncIterator]()],
48
48
  outputs: this.outputs,
49
49
  properties: {
50
- name: `kea-${name}`,
50
+ name: `kea-${this.location.name}-${host.name}`,
51
51
  description: `kea definitions for ${this.fullName}@${name}`,
52
52
  access: "private",
53
53
  dependencies: ["kea"],
54
- replaces: ["kea-SW"] // TODO remove
54
+ replaces: ["kea-SW",`kea-${name}`] // TODO remove
55
55
  }
56
56
  };
57
57
 
@@ -351,6 +351,7 @@ export class Cluster extends Host {
351
351
  description: string;
352
352
  access: string;
353
353
  dependencies: string[];
354
+ replaces: string[];
354
355
  };
355
356
  }, void, unknown>;
356
357
  }