flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 12 forks source link

Provisioning lacks per host settings #412

Open zagy opened 7 months ago

zagy commented 7 months ago
[provisioner:default]
method = fc-nixos-dev-vm
host = 
hydra-eval = 215351
memory = 8192
cores = 12

The memory/core/hydra settings need to be overridable per VM.

Also it's unclear how one would have a different provision.nix/sh per host.

elikoga commented 6 months ago
[host:foo]
components = hello

[host:bar]
components = bye
provisioner = notthedefault

[provisioner:default]
method = fc-nixos-dev-vm
host = # 21.05 production release 2022_01
channel =
hydra-eval = 215351
memory = 8192
cores = 12

[provisioner:notthedefault]
method = fc-nixos-dev-vm
host = 
hydra-eval = 215351
memory = 4096
cores = 4

should work where foo is provisioned with default and bar is provisioned with notthedefault.

This is undocumented afaik

how one would have a different provision.nix/sh per host

Not possible right now. Do we want to have a parameter to set the filename?

elikoga commented 5 months ago

I don't understand how https://github.com/flyingcircusio/batou_ext/blob/7eac817e43f78edb654554b1a8e67b3c762fc65b/src/batou_ext/fcio.py#L141 fits into this well enough to write a piece of documentation right now so I'll save this one for 2.5