pmcf 1.48.0 → 1.48.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/bin/pmcf-host-defs +5 -1
- package/package.json +1 -1
- package/src/host.mjs +2 -0
- package/types/host.d.mts +1 -1
package/bin/pmcf-host-defs
CHANGED
|
@@ -15,7 +15,10 @@ const host = await root.load(hostName, { type: types.host });
|
|
|
15
15
|
await generateNetworkDefs(host, options.output);
|
|
16
16
|
await generateMachineInfo(host, options.output);
|
|
17
17
|
await copySshKeys(host, options.output);
|
|
18
|
-
await generateKnownHosts(
|
|
18
|
+
await generateKnownHosts(
|
|
19
|
+
host.owner.hosts(),
|
|
20
|
+
join(options.output, "root", ".ssh")
|
|
21
|
+
);
|
|
19
22
|
|
|
20
23
|
console.log("provides", "host", ...host.provides);
|
|
21
24
|
console.log("depends", `location-${host.location.name}`, ...host.depends);
|
|
@@ -165,6 +168,7 @@ async function generateKnownHosts(hosts, dir) {
|
|
|
165
168
|
for await (const host of hosts) {
|
|
166
169
|
try {
|
|
167
170
|
const [alg, key, desc] = (await host.publicKey("ed25519")).split(/\s+/);
|
|
171
|
+
|
|
168
172
|
keys.push(`${host.domainName} ${alg} ${key}`);
|
|
169
173
|
|
|
170
174
|
for await (const addr of host.networkAddresses()) {
|
package/package.json
CHANGED
package/src/host.mjs
CHANGED
package/types/host.d.mts
CHANGED
|
@@ -181,7 +181,7 @@ export class Host extends Base {
|
|
|
181
181
|
get rawAddress(): any;
|
|
182
182
|
get rawAddresses(): any[];
|
|
183
183
|
get cidrAddresses(): any[];
|
|
184
|
-
publicKey(type?: string): Promise<
|
|
184
|
+
publicKey(type?: string): Promise<string>;
|
|
185
185
|
#private;
|
|
186
186
|
}
|
|
187
187
|
export class NetworkInterface extends Base {
|