proxmox-answer-file-generator
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Generate a Proxmox VE Answer File

A simple utility to output TOML for a Proxmox VE answer file. Comes with TypeScript support.

Usage

import {generateToml} from 'proxmox-answer-file-generator';

const config: ProxmoxConfig = {
	global: {
		country: 'US',
		keyboard: 'en-us',
		timezone: 'America/Detroit',
		fqdn: 'some.domain.com',
		mailto: 'my.email@example.com',
		rootPasswordHashed: 'NOT A PASSWORD',
		rootSshKeys: ['SOME SSH KEY'],
	},
	network: {
		source: 'from-dhcp',
	},
	diskSetup: {
		filesystem: 'ext4',
		disks: ['sda']
	}
};

const answerFile = generateToml(config);

// Write it to a file or pass it in a server response, etc.
console.log(answerFile);

Readme

Keywords

none

Package Sidebar

Install

npm i proxmox-answer-file-generator

Weekly Downloads

5

Version

0.0.4

License

MIT

Unpacked Size

40.3 kB

Total Files

30

Last publish

Collaborators

  • jamestalmage