From 30766d2a0438134a54725c89d9d6ae03afc1d782 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 10 Jul 2022 22:03:49 -0400 Subject: star: Support an optional seed_base for new planets Pass in any URL that can be appended with "/{meta,user}-data" and return valid cloud-init stuff --- templates/vm.rs.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/vm.rs.xml b/templates/vm.rs.xml index daf66b2..5ba90cc 100644 --- a/templates/vm.rs.xml +++ b/templates/vm.rs.xml @@ -1,4 +1,4 @@ -@(name: String, uuid: String, mac_address: String, sata: bool, memory: u64, cpus: u64, seed: String) +@(name: String, uuid: String, mac_address: String, sata: bool, memory: u64, cpus: u64, seed: Option) @name @uuid @@ -75,9 +75,11 @@ /dev/urandom - - - - + @if let Some(s) = seed { + + + + + } -- cgit v1.2.3