pmcf 2.41.1 → 2.41.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.41.1",
3
+ "version": "2.41.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,7 +27,9 @@ export async function generateKnownHosts(hosts, dir) {
27
27
 
28
28
  keys.push(`${host.domainName} ${alg} ${key}`);
29
29
 
30
- for await (const addr of host.networkAddresses()) {
30
+ for await (const addr of host.networkAddresses(
31
+ na => na.networkInterface.kind !== "loopback"
32
+ )) {
31
33
  keys.push(`${addr.address} ${alg} ${key}`);
32
34
  }
33
35
  } catch {}
package/src/host.mjs CHANGED
@@ -461,7 +461,8 @@ export class Host extends ServiceOwner {
461
461
  { base: this.directory, pattern: "*_key" },
462
462
  { destination: "/etc/ssh/", mode: 0o600 }
463
463
  ),
464
- new FileContentProvider(dir + "/")
464
+ new FileContentProvider(dir + "/"),
465
+ new FileContentProvider(join(this.directory, "extra") + "/")
465
466
  ],
466
467
  outputs: this.outputs,
467
468
  properties: {
@@ -474,6 +475,7 @@ export class Host extends ServiceOwner {
474
475
  ],
475
476
  provides: [...this.provides],
476
477
  replaces: [`mf-${this.hostName}`, ...this.replaces],
478
+ requires: [],
477
479
  backup: "root/.ssh/known_hosts",
478
480
  hooks: await loadHooks(
479
481
  {},
@@ -54,6 +54,8 @@ export class WLANNetworkInterface extends EthernetNetworkInterface {
54
54
  const d = join(packageData.dir, "var/lib/iwd/");
55
55
  await mkdir(d, { recursive: true });
56
56
 
57
+ packageData.properties.requires.push("iwd", "impala");
58
+
57
59
  /*
58
60
  writeFile(
59
61
  join(d, `${this.network.name}.psk`),
package/types/host.d.mts CHANGED
@@ -246,6 +246,7 @@ export class Host extends ServiceOwner {
246
246
  dependencies: any[];
247
247
  provides: any[];
248
248
  replaces: any[];
249
+ requires: any[];
249
250
  backup: string;
250
251
  hooks: any;
251
252
  };