Re: vmdebootstrap plans
On Fri, Nov 11, 2016 at 02:09:39PM +0000, Lars Wirzenius wrote:
> Hello, those interested in vmdebootstrap. I have some news of changes
> I'm planning.
>
> * My plan: I'll add a domain specific language to replace the main
> code path. I'll have vmdb read a YAML file and executes steps listed
> therein. The step implementations are provided by vmdb, or perhaps
> plugins. Steps may be parameterised. This should give a lot of
> flexibility to users without increasing complexity.
>
> I'll use YAML so I don't need to write a parser. Parameter values
> will be run throught jinja2, with variables the are set via vmdb
> command line options, of by steps that get executed.
>
> * The YAML might look somethin like this:
>
> - step: create_raw_file
> size: {{ size }}
> filename: {{ image }}
> - step: create_partition_table
> partition_table_type: msdos
> - step: create_partition
> size: {{ bootsize }}
> partition_type: ext2
> bootable: yes
> mount_point: /boot
> - step: create_partition
> size: rest
> partition_type: ext4
> mount_point: /
> - step: mount_all
> - step: debootstrap
architecture: armhf
> - step: install_grub
> - step: run_customization_script
> script: {{ customize }}
> - step: cleanup
> - step: convert_image_to_output_format
> output_format: qcow2
>
> The "step:" key specifies the step to execute. The other keys are
> parameters for the step. The {{...}} parts are where Jinja2 is used
> to expand variable values.
>
> * I can't promise when anything works.
Release early and release often :-)
Groeten
Geert Stappers
--
Leven en laten leven
Reply to: