summaryrefslogtreecommitdiff
path: root/src/spec.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-02-27 07:54:40 +0200
committerLars Wirzenius <liw@liw.fi>2021-02-28 12:24:08 +0200
commit1c5c97532c91faf8a59bbe7ebcfc645f653db697 (patch)
tree5d690b3e826472c8515710dce3d9bd256106b249 /src/spec.rs
parent98c482d7903d059a6598a6e7280f0e7b431eac29 (diff)
downloadvmadm-1c5c97532c91faf8a59bbe7ebcfc645f653db697.tar.gz
feat: export cloud-init config, set SSH host keys
Diffstat (limited to 'src/spec.rs')
-rw-r--r--src/spec.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/spec.rs b/src/spec.rs
index 1209040..2cb61f6 100644
--- a/src/spec.rs
+++ b/src/spec.rs
@@ -2,12 +2,22 @@ use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Debug, Serialize, Deserialize)]
+#[serde(deny_unknown_fields)]
pub struct Specification {
pub name: String,
#[serde(default)]
pub ssh_key_files: Vec<PathBuf>,
+ pub rsa_host_key: Option<String>,
+ pub rsa_host_cert: Option<String>,
+ pub dsa_host_key: Option<String>,
+ pub dsa_host_cert: Option<String>,
+ pub ecdsa_host_key: Option<String>,
+ pub ecdsa_host_cert: Option<String>,
+ pub ed25519_host_key: Option<String>,
+ pub ed25519_host_cert: Option<String>,
+
pub base: PathBuf,
pub image: PathBuf,
pub image_size_gib: u64,