pmcf 4.8.3 → 4.9.0

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.3",
3
+ "version": "4.9.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,13 +21,15 @@ export async function generateMachineInfo(host, packageData) {
21
21
 
22
22
  export async function generateKnownHosts(hosts, dir) {
23
23
  const keys = [];
24
- for await (const host of hosts) {
24
+ for (const host of hosts) {
25
25
  try {
26
26
  const [alg, key, desc] = (await host.publicKey("ed25519")).split(/\s+/);
27
27
 
28
- keys.push(`${host.domainName} ${alg} ${key}`);
28
+ for(const domainName of host.domainNames) {
29
+ keys.push(`${domainName} ${alg} ${key}`);
30
+ }
29
31
 
30
- for await (const addr of host.networkAddresses(
32
+ for (const addr of host.networkAddresses(
31
33
  na => na.networkInterface.kind !== "loopback"
32
34
  )) {
33
35
  keys.push(`${addr.address} ${alg} ${key}`);
package/src/host.mjs CHANGED
@@ -428,6 +428,7 @@ export class Host extends ServiceOwner {
428
428
  let packageData = {
429
429
  dir,
430
430
  sources: [
431
+ ...this.templateContent(),
431
432
  new FileContentProvider(
432
433
  { dir: this.directory, pattern: "*.pub" },
433
434
  { destination: "/etc/ssh/", mode: 0o644 }
package/types/host.d.mts CHANGED
@@ -254,7 +254,7 @@ export class Host extends ServiceOwner {
254
254
  publicKey(type?: string): Promise<string>;
255
255
  preparePackages(dir: any): AsyncGenerator<{
256
256
  dir: any;
257
- sources: FileContentProvider[];
257
+ sources: any[];
258
258
  outputs: Set<typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
259
259
  properties: {
260
260
  name: string;
@@ -269,5 +269,4 @@ export class Host extends ServiceOwner {
269
269
  }, void, unknown>;
270
270
  }
271
271
  import { ServiceOwner } from "pmcf";
272
- import { FileContentProvider } from "npm-pkgbuild";
273
272
  import { Base } from "pmcf";