Johannes Kirschbauer
c43599bfa0
Format
2024-08-26 09:05:01 +02:00
Johannes Kirschbauer
d3f8c4ec86
BuildClan: autoimport facter.json
2024-08-26 09:04:59 +02:00
Johannes Kirschbauer
59c18b8411
Inventory: add assertions, allow external references
2024-08-13 19:22:29 +02:00
a-kenji
16e6b690ad
Fix: forward meta attributes in flake-parts module
...
This fixes building machines with the flake-parts module.
Since the inventory merges the machines, the `clan.core.meta` attribute
is now a submodule and conditionally imported.
Also drops the following attributes:
- clan.core.meta.icon
- clan.core.meta.description
In favor of specifying them inside the inventory.
This doesn't use `mkRemovedOptionsModule`, because in our case it would
cause infinite recursion.
2024-08-07 12:19:17 +00:00
a-kenji
10f7509a5f
Revert "Fix: forward meta attributes in flake-parts module"
...
This reverts commit e7c6333e06 .
The propagated `self` attribute can be an error in non `flake-parts`
modules.
2024-08-07 10:40:36 +00:00
a-kenji
e7c6333e06
Fix: forward meta attributes in flake-parts module
...
This fixes building machines with the flake-parts module.
Since the inventory merges the machines, the `clan.core.meta` attribute
is now a submodule and conditionally imported.
Also drops the following attributes:
- clan.core.meta.icon
- clan.core.meta.description
In favor of specifying them inside the inventory.
This doesn't use `mkRemovedOptionsModule`, because in our case it would
cause infinite recursion.
2024-08-07 09:33:49 +00:00
Johannes Kirschbauer
a4bbdcb010
Clan-core: Rename clanName within Machines
2024-08-06 12:21:46 +02:00
DavHau
d7475bef37
build-clan: fix specialArgs not passed
2024-08-04 13:06:51 +07:00
Johannes Kirschbauer
79e15bff24
Add: legacy support for implicitly creating machines through creating a directory
...
This will be deprecated as soon as the tests dont rely on this behavior anymore
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
5d12154f96
Forward clan name for vm test compatibility
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
ac6b7f84e0
Fix wrong unit tests
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
ef58bea020
Fix wrong default for imports
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
d51508656f
Add flake-parts module
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
8fd09b8403
Add build-clan module
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
c6466f070e
Fix: hostPlatform not hostSystem
2024-07-24 10:34:10 +02:00
Johannes Kirschbauer
3435db68c8
Classgen: add error reporting and combine common classes
2024-07-19 13:03:38 +02:00
Johannes Kirschbauer
988ed9dccd
Docs: explain inventory imports
2024-07-19 11:26:34 +02:00
Johannes Kirschbauer
67b76c8ced
Docs: generate api docs for inventory
2024-07-19 11:07:47 +02:00
Johannes Kirschbauer
c92ee71d42
Jsonschema: fix tests
2024-07-18 22:04:11 +02:00
Johannes Kirschbauer
7e84eaa4b3
Init: Autogenerate classes from nix interfaces
2024-07-18 19:14:12 +02:00
Johannes Kirschbauer
69874a2405
Fix eval tests
2024-07-17 12:12:42 +02:00
Johannes Kirschbauer
0bfba72739
Inventory: fix options
2024-07-17 10:55:46 +02:00
Johannes Kirschbauer
ef18d60286
Inventory: extend python dataclasses by schema changes
2024-07-17 10:09:58 +02:00
Johannes Kirschbauer
7e21428548
Inventory: extend model by deployment info
2024-07-17 10:09:58 +02:00
Johannes Kirschbauer
ac95878ead
Inventory: init: deployment info for machines
2024-07-17 10:07:57 +02:00
Johannes Kirschbauer
a2c3c09564
Inventory: migrate failure test message
2024-07-16 10:33:24 +02:00
Jörg Thalheim
5c0b482431
wip: debug
2024-07-15 20:41:27 +02:00
Jörg Thalheim
7c83c89643
inventory: better error message if tags are not found
2024-07-15 20:41:27 +02:00
Jörg Thalheim
2eeab7f556
inventory: don't check if tag is used in inventory
...
this doesn't work with flake-parts
2024-07-15 20:41:27 +02:00
Johannes Kirschbauer
7b18caca9b
Inventory: fix tests
2024-07-15 20:41:27 +02:00
Johannes Kirschbauer
9afed2295d
Inventory: add global imports
2024-07-15 20:41:27 +02:00
Johannes Kirschbauer
914d50a1c5
Inventory: only apply if settings.json exists
2024-07-15 19:14:45 +02:00
Johannes Kirschbauer
5a4a7e6694
Inventory: fix roles config
2024-07-15 15:59:59 +02:00
Jörg Thalheim
7e3881d618
inventory: allow per role configuration
2024-07-15 13:43:43 +02:00
Johannes Kirschbauer
f2320e907f
Doc: write inventory documentation
2024-07-14 16:42:27 +02:00
Johannes Kirschbauer
ad321976ff
Fix schema test
2024-07-14 15:02:32 +02:00
Johannes Kirschbauer
6d1af2f6b3
Inventory: fix narrow pattern
2024-07-14 13:34:50 +02:00
Johannes Kirschbauer
425590ae12
Remove unneeded special args
2024-07-14 13:31:58 +02:00
Johannes Kirschbauer
e54101165f
Inventory: generate exact schema for validation & documentation
2024-07-14 13:30:02 +02:00
Johannes Kirschbauer
3034b9ef92
Json-schema: extend interface by header to allow schema spec and arbitrary extensions
2024-07-14 13:29:19 +02:00
Jörg Thalheim
6a2e24e7ff
lib.readFact: fix argument order
2024-07-09 15:23:26 +02:00
Jörg Thalheim
872a5fdc80
lib.facts: assume clanDir instead of machines prefix
2024-07-09 15:05:00 +02:00
Jörg Thalheim
a24c183ec5
lib.readFact: change order of arguments
2024-07-09 14:44:35 +02:00
Jörg Thalheim
9c8d993342
rename machineDir -> clanDir
2024-07-09 13:00:34 +02:00
Jörg Thalheim
00dbdaf071
improve error message for removed settings.json
2024-07-09 11:44:29 +02:00
Jörg Thalheim
9e6d5124ad
add shellcheck hints to all envrc files
2024-07-08 16:24:34 +02:00
Johannes Kirschbauer
04ef8d824e
Inventory spec: make system optional
2024-07-06 17:56:22 +02:00
Johannes Kirschbauer
d8ff8b042f
Doc: add conceptual documentation
2024-07-06 17:22:47 +02:00
Johannes Kirschbauer
9eb00df6b7
buildClan: autoimport configuration.nix & hardware-configuration.nix
2024-07-06 17:22:47 +02:00
DavHau
802f047341
devShells: make all shells inherit from default shell
...
Currently, important tools from the default shell are lost as soon as select-shell is used to switch to another shell. select-shell itself, for example is missing, which makes it impossible to switch back to another shell.
2024-07-05 15:01:25 +07:00