Johannes Kirschbauer
1705ab757a
Inventory: fix test in build-clan
2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
e7c92d034d
fixup! Inventory: add machines automatically from machines dir
2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
55a25e69e2
Inventory: rename imports to extraModules
2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
c21a265e21
Inventory: allow arbitrary imports from nix
2024-09-15 16:41:33 +00:00
Johannes Kirschbauer
fbf3be48dd
Inventory: set {name,meta.name} automatically
2024-09-15 15:20:35 +02:00
Johannes Kirschbauer
9bbc720022
Inventory: eval test fixup
2024-09-15 14:10:33 +02:00
Johannes Kirschbauer
754aa2b54e
Inventory: only declare the module namespace if any config is defined
2024-09-15 13:35:53 +02:00
Johannes Kirschbauer
7c0d87c5b1
ClanModules: make all module available to inventory
2024-09-13 17:18:20 +02:00
Qubasa
787599ebb6
clanCore: init machine_id_v3
2024-09-13 12:17:49 +02:00
a-kenji
f1b857f4ae
Revert "Merge pull request 'machine_id_v2' ( #2052 ) from Qubasa/clan-core:machine_id_v2 into main"
...
This reverts commit 68a72a4156 , reversing
changes made to 7af3e80249 .
2024-09-10 14:01:12 +02:00
Qubasa
a0b3275ed1
clanCore: init machineId and diskId v2
2024-09-09 15:51:31 +02:00
Qubasa
323010bb04
revert machine_id pull request
2024-09-06 21:38:50 +02:00
Qubasa
b16a53f510
clanCore: init machine_id.nix with clan.core.machine.{id,diskId}
2024-09-06 18:05:40 +02:00
Johannes Kirschbauer
fec7b3e120
Flake: nixos-facter-module with flake: false
2024-08-28 11:01:07 +02:00
Johannes Kirschbauer
732ba9d176
Template: fix flake-parts template
2024-08-27 11:27:26 +02:00
Jörg Thalheim
ed2975acea
remove nixos-factor modules for now
...
I would like to get rid of blueprint before having this feature
2024-08-27 09:38:28 +02:00
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