Qubasa
60397e0ca4
clanCore: init machine_id_v3
2024-09-13 12:17:49 +02:00
a-kenji
b13ed922b1
Revert "Merge pull request 'machine_id_v2' ( #2052 ) from Qubasa/clan-core:machine_id_v2 into main"
...
This reverts commit 22a11abfe5 , reversing
changes made to 208b71ac0e .
2024-09-10 14:01:12 +02:00
Qubasa
5c975a5eef
clanCore: init machineId and diskId v2
2024-09-09 15:51:31 +02:00
Qubasa
2efa096d29
revert machine_id pull request
2024-09-06 21:38:50 +02:00
Qubasa
4171d5ea4e
clanCore: init machine_id.nix with clan.core.machine.{id,diskId}
2024-09-06 18:05:40 +02:00
Johannes Kirschbauer
38991c9bf6
Flake: nixos-facter-module with flake: false
2024-08-28 11:01:07 +02:00
Johannes Kirschbauer
fe815e5b45
Template: fix flake-parts template
2024-08-27 11:27:26 +02:00
Jörg Thalheim
dc94545655
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
086e6c29d3
Format
2024-08-26 09:05:01 +02:00
Johannes Kirschbauer
fd2dd2b565
BuildClan: autoimport facter.json
2024-08-26 09:04:59 +02:00
Johannes Kirschbauer
f0f870cf56
Inventory: add assertions, allow external references
2024-08-13 19:22:29 +02:00
a-kenji
f58d5c53be
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
19633da2de
Revert "Fix: forward meta attributes in flake-parts module"
...
This reverts commit ce33119896 .
The propagated `self` attribute can be an error in non `flake-parts`
modules.
2024-08-07 10:40:36 +00:00
a-kenji
ce33119896
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
742e0a71b5
Clan-core: Rename clanName within Machines
2024-08-06 12:21:46 +02:00
DavHau
a4ca900427
build-clan: fix specialArgs not passed
2024-08-04 13:06:51 +07:00
Johannes Kirschbauer
a4ae204857
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
b893b33d3e
Forward clan name for vm test compatibility
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
440122d470
Fix wrong unit tests
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
bf7b8fca7b
Fix wrong default for imports
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
35891f7165
Add flake-parts module
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
8b0212b828
Add build-clan module
2024-08-03 12:05:09 +02:00
Johannes Kirschbauer
75bdf3debc
Fix: hostPlatform not hostSystem
2024-07-24 10:34:10 +02:00
Johannes Kirschbauer
33261ab4b6
Classgen: add error reporting and combine common classes
2024-07-19 13:03:38 +02:00
Johannes Kirschbauer
8dece6fb82
Docs: explain inventory imports
2024-07-19 11:26:34 +02:00
Johannes Kirschbauer
a5dd99c43d
Docs: generate api docs for inventory
2024-07-19 11:07:47 +02:00
Johannes Kirschbauer
a8bf83e849
Jsonschema: fix tests
2024-07-18 22:04:11 +02:00
Johannes Kirschbauer
b752d2eb67
Init: Autogenerate classes from nix interfaces
2024-07-18 19:14:12 +02:00
Johannes Kirschbauer
2a0acb28d3
Fix eval tests
2024-07-17 12:12:42 +02:00
Johannes Kirschbauer
bc520df9ff
Inventory: fix options
2024-07-17 10:55:46 +02:00
Johannes Kirschbauer
e236dba1c9
Inventory: extend python dataclasses by schema changes
2024-07-17 10:09:58 +02:00
Johannes Kirschbauer
baa9dc1d1a
Inventory: extend model by deployment info
2024-07-17 10:09:58 +02:00
Johannes Kirschbauer
9e6f2743e0
Inventory: init: deployment info for machines
2024-07-17 10:07:57 +02:00
Johannes Kirschbauer
5ec952d29d
Inventory: migrate failure test message
2024-07-16 10:33:24 +02:00
Jörg Thalheim
d9932b3b81
wip: debug
2024-07-15 20:41:27 +02:00
Jörg Thalheim
ef4ef00d0f
inventory: better error message if tags are not found
2024-07-15 20:41:27 +02:00
Jörg Thalheim
cc5c027d92
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
ec5fb47b32
Inventory: fix tests
2024-07-15 20:41:27 +02:00
Johannes Kirschbauer
d99dfbcedd
Inventory: add global imports
2024-07-15 20:41:27 +02:00
Johannes Kirschbauer
40d71f060e
Inventory: only apply if settings.json exists
2024-07-15 19:14:45 +02:00
Johannes Kirschbauer
018f18a93e
Inventory: fix roles config
2024-07-15 15:59:59 +02:00
Jörg Thalheim
8e7a34af0d
inventory: allow per role configuration
2024-07-15 13:43:43 +02:00
Johannes Kirschbauer
d77f722769
Doc: write inventory documentation
2024-07-14 16:42:27 +02:00
Johannes Kirschbauer
c43c4ef067
Fix schema test
2024-07-14 15:02:32 +02:00
Johannes Kirschbauer
c03b667df4
Inventory: fix narrow pattern
2024-07-14 13:34:50 +02:00
Johannes Kirschbauer
aff06d3f4d
Remove unneeded special args
2024-07-14 13:31:58 +02:00
Johannes Kirschbauer
d49a23b890
Inventory: generate exact schema for validation & documentation
2024-07-14 13:30:02 +02:00
Johannes Kirschbauer
77577a9f27
Json-schema: extend interface by header to allow schema spec and arbitrary extensions
2024-07-14 13:29:19 +02:00
Jörg Thalheim
3a035437cf
lib.readFact: fix argument order
2024-07-09 15:23:26 +02:00
Jörg Thalheim
cd6c632f3b
lib.facts: assume clanDir instead of machines prefix
2024-07-09 15:05:00 +02:00