buildwithnexus 0.3.5 → 0.3.6
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/dist/bin.js +4 -4
- package/dist/nexus-release.tar.gz +0 -0
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -938,13 +938,13 @@ async function renderCloudInit(data, templateContent) {
|
|
|
938
938
|
}
|
|
939
939
|
const safeData = { ...data, sshPubKey: yamlEscape(trimmedPubKey), keys: safeKeys };
|
|
940
940
|
const rendered = ejs.render(templateContent, safeData);
|
|
941
|
-
const outputPath = path5.join(CONFIGS_DIR, "user-data
|
|
941
|
+
const outputPath = path5.join(CONFIGS_DIR, "user-data");
|
|
942
942
|
fs5.writeFileSync(outputPath, rendered, { mode: 384 });
|
|
943
|
-
audit("cloudinit_rendered", "user-data
|
|
943
|
+
audit("cloudinit_rendered", "user-data written");
|
|
944
944
|
return outputPath;
|
|
945
945
|
}
|
|
946
946
|
async function createCloudInitIso(userDataPath) {
|
|
947
|
-
const metaDataPath = path5.join(CONFIGS_DIR, "meta-data
|
|
947
|
+
const metaDataPath = path5.join(CONFIGS_DIR, "meta-data");
|
|
948
948
|
fs5.writeFileSync(metaDataPath, "instance-id: nexus-vm-1\nlocal-hostname: nexus-vm\n", { mode: 384 });
|
|
949
949
|
const isoPath = path5.join(IMAGES_DIR2, "init.iso");
|
|
950
950
|
const env = scrubEnv();
|
|
@@ -1005,7 +1005,7 @@ async function createCloudInitIso(userDataPath) {
|
|
|
1005
1005
|
fs5.unlinkSync(metaDataPath);
|
|
1006
1006
|
} catch {
|
|
1007
1007
|
}
|
|
1008
|
-
audit("cloudinit_plaintext_deleted", "user-data
|
|
1008
|
+
audit("cloudinit_plaintext_deleted", "user-data and meta-data removed");
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
Binary file
|