[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#962140: ITP: bdebstrap -- YAML config based multi-mirror Debian chroot creation tool

Am Donnerstag, den 11.06.2020, 21:22 +0200 schrieb Andrej Shadura:
> Hi,
> On Thu, 11 Jun 2020 at 21:08, Benjamin Drung
> <benjamin.drung@cloud.ionos.com> wrote:
> > Am Donnerstag, den 11.06.2020, 11:32 +0200 schrieb Andrej Shadura:
> > > Hi,
> > > 
> > > On Thu, 11 Jun 2020 at 10:52, Benjamin Drung
> > > <benjamin.drung@cloud.ionos.com> wrote:
> > > > Before developing bdebstrap, I evaluated vmdb2 and borrowed the
> > > > idea of
> > > > using YAML.
> > > > 
> > > > The big difference besides mmdebstrap/deboostrap is that vmdb2
> > > > creates
> > > > a disk image and bdebstrap create a tarball or squashfs image.
> > > 
> > > Have you looked at debos?
> > No, I wasn't aware of debos.
> > 
> > There is one use-case that I forgot to mention and which I don't
> > see
> > debos covers: Support for flavors. We have a common live system
> > YAML
> > configuration and apply a flavor on top. The flavor contains
> > additional
> > packages and configuration files, etc.
> I’m not exactly sure what you mean by flavours

What I mean by flavor: bdebstrap can take multiple YAML configs and
merge them together. That way you can have a "common" config and
"flavor" configs that you put on top. These flavor can contain more
packages to install, more config files, different custom script, etc.
Then you can build it by e.g.

$ bdebstrap -c common.yaml -c $flavor.yaml

Our flavor YAML files are around 50 lines long.

> , but this is what we do:
> https://gitlab.apertis.org/infrastructure/apertis-image-recipes/-/blob/apertis/v2021dev2/apertis-ospack-sdk.yaml
> (In the past, we also had one big YAML file with a lot of
> conditionals
> for different image types, but later split them in parts so that
> they’re easier to read.)

So you can have variables that you can override when calling debos, but
you can't specify an additional config, can you?

Benjamin Drung

DevOps Engineer and Debian & Ubuntu Developer
Platform Integration (IONOS Cloud)

1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Germany
E-mail: benjamin.drung@cloud.ionos.com | Web: www.ionos.de

Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498

Vorstand: Dr. Christian Böing, Hüseyin Dogan, Dr. Martin Endreß, Hans-
Henning Kettler, Arthur Mai, Matthias Steinberg, Achim Weiß
Aufsichtsratsvorsitzender: Markus Kadelke

Member of United Internet

Diese E-Mail kann vertrauliche und/oder gesetzlich geschützte
Informationen enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat
sind oder diese E-Mail irrtümlich erhalten haben, unterrichten Sie
bitte den Absender und vernichten Sie diese E-Mail. Anderen als dem
bestimmungsgemäßen Adressaten ist untersagt, diese E-Mail zu speichern,
weiterzuleiten oder ihren Inhalt auf welche Weise auch immer zu

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient of this e-mail, you are hereby
notified that saving, distribution or use of the content of this e-mail 
in any way is prohibited. If you have received this e-mail in error,
please notify the sender and delete the e-mail.

Reply to: