pmcf 4.8.2 → 4.8.3

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": "4.8.2",
3
+ "version": "4.8.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/host.mjs CHANGED
@@ -429,11 +429,11 @@ export class Host extends ServiceOwner {
429
429
  dir,
430
430
  sources: [
431
431
  new FileContentProvider(
432
- { base: this.directory, pattern: "*.pub" },
432
+ { dir: this.directory, pattern: "*.pub" },
433
433
  { destination: "/etc/ssh/", mode: 0o644 }
434
434
  ),
435
435
  new FileContentProvider(
436
- { base: this.directory, pattern: "*_key" },
436
+ { dir: this.directory, pattern: "*_key" },
437
437
  { destination: "/etc/ssh/", mode: 0o600 }
438
438
  ),
439
439
  new FileContentProvider(dir + "/")
package/src/location.mjs CHANGED
@@ -44,7 +44,7 @@ export class Location extends Owner {
44
44
  sources: [
45
45
  new FileContentProvider(dir + "/"),
46
46
  new FileContentProvider(
47
- { base: this.directory, pattern: "location.json" },
47
+ { dir: this.directory, pattern: "location.json" },
48
48
  { destination: "/etc/location/location.json" }
49
49
  )
50
50
  ],
@@ -54,8 +54,7 @@ export class Location extends Owner {
54
54
  description: `${this.typeName} definitions for ${this.fullName}`,
55
55
  access: "private",
56
56
  dependencies: { jq: ">=1.8" },
57
- provides: ["location", "mf-location"],
58
- replaces: [`mf-location-${this.name}`]
57
+ provides: ["location", "mf-location"]
59
58
  }
60
59
  };
61
60
 
@@ -7,7 +7,6 @@ import {
7
7
  } from "pacc";
8
8
  import { addServiceType } from "pmcf";
9
9
  import { ServiceTypeDefinition, Service } from "../service.mjs";
10
- import { addHook } from "../hooks.mjs";
11
10
 
12
11
  const OpenLDAPServiceTypeDefinition = {
13
12
  name: "openldap",
@@ -84,8 +83,6 @@ export class OpenLDAPService extends Service {
84
83
  }
85
84
 
86
85
  async *preparePackages(dir) {
87
- const host = this.host;
88
- const name = host.name;
89
86
  const owner = "ldap";
90
87
  const group = "ldap";
91
88
 
@@ -108,25 +105,13 @@ export class OpenLDAPService extends Service {
108
105
  ],
109
106
  outputs: this.outputs,
110
107
  properties: {
111
- name: `${this.typeName}-${this.location.name}-${name}`,
112
- description: `${this.typeName} definitions for ${this.fullName}@${name}`,
108
+ name: `${this.typeName}-${this.location.name}-${this.host.name}`,
109
+ description: `${this.typeName} definitions for ${this.fullName}@${this.host.name}`,
113
110
  access: "private",
114
111
  dependencies: ["openldap>=2.6.10"]
115
112
  }
116
113
  };
117
114
 
118
- addHook(
119
- packageData,
120
- "post_upgrade",
121
- `setfacl -m u:${owner}:r /etc/letsencrypt/archive/*/privkey*.pem`
122
- );
123
-
124
- addHook(
125
- packageData,
126
- "post_install",
127
- `setfacl -m u:${owner}:r /etc/letsencrypt/archive/*/privkey*.pem`
128
- );
129
-
130
115
  yield packageData;
131
116
  }
132
117
  }
@@ -361,7 +361,6 @@ export class Location extends Owner {
361
361
  jq: string;
362
362
  };
363
363
  provides: string[];
364
- replaces: string[];
365
364
  };
366
365
  }, void, unknown>;
367
366
  }