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
Jörg Thalheim
d4d62f8221
lib.readFact: change order of arguments
2024-07-09 14:44:35 +02:00
Jörg Thalheim
1f20220bc8
rename machineDir -> clanDir
2024-07-09 13:00:34 +02:00
Jörg Thalheim
e2ce13114e
improve error message for removed settings.json
2024-07-09 11:44:29 +02:00
Jörg Thalheim
c694cdf4b4
add shellcheck hints to all envrc files
2024-07-08 16:24:34 +02:00
Johannes Kirschbauer
55c4003a76
Inventory spec: make system optional
2024-07-06 17:56:22 +02:00
Johannes Kirschbauer
1aec155f15
Doc: add conceptual documentation
2024-07-06 17:22:47 +02:00
Johannes Kirschbauer
234704b1f6
buildClan: autoimport configuration.nix & hardware-configuration.nix
2024-07-06 17:22:47 +02:00
DavHau
c9485fb3fd
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
Johannes Kirschbauer
e1fd63bca2
clanModules: init single disk
2024-07-03 11:05:00 +02:00
a-kenji
2271404a51
lib: add fact loaders to clan lib
2024-07-02 11:34:26 +00:00
Ingolf Wagner
c612b9c124
add lib/facts.nix
2024-07-02 11:34:26 +00:00
Johannes Kirschbauer
4363544672
Inventory: add system and sample machine
2024-07-01 21:25:02 +02:00
Jörg Thalheim
740f05f8ea
buildClan: improve deprecation error message of clanName
...
Printing the clanName in my case was actually more confusing then
helpful. Also mention what function needs to be updated.
2024-06-30 08:08:22 +02:00
DavHau
dfcf4d8309
vars: init
...
- init eval tests
- init basic interface
2024-06-27 21:09:55 +07:00
Johannes Kirschbauer
1ec57a5c5d
Inventory: add eval tests
2024-06-26 17:19:19 +02:00
Johannes Kirschbauer
d8e0031de0
Inventory: restructure folders
2024-06-26 15:19:40 +02:00
Johannes Kirschbauer
ee543a39d0
Add toml frontmatter description to jsonschema
2024-06-26 15:10:36 +02:00
Johannes Kirschbauer
cbb78ca1ae
ClanModules: Add docs and api to retrieve metadata
2024-06-25 21:17:01 +02:00
Johannes Kirschbauer
925a24590d
buildClan: bugfixing
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
7818ee647c
Add machinesDirs with default
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
457cac8be9
Add machinesDirs with default
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
25024aba95
Add settings.json back
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
7f897e29d6
Remove useless settings.json
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
b90ec6e842
Inventory: move to lib.inventory
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
9304afaa44
Inventory: simplify build-clan interface
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
0d4928ab73
Inventory: init module merge & validation logic for inventory
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
eb221244e6
Extend build-clan interface
2024-06-25 12:23:29 +00:00
Johannes Kirschbauer
c77230e3b6
Json-schema tests: add schema specifier to test
2024-06-24 16:00:46 +02:00
Johannes Kirschbauer
bcb7152c9f
schema improvements: add additionalProperties: false to ensure closed types
2024-06-24 15:55:48 +02:00
Johannes Kirschbauer
aed486f020
lib: eval clan module as lib function
2024-06-24 15:47:25 +02:00
Johannes Kirschbauer
b222c98a54
Inventory: add concrete use-case examples
2024-06-24 14:35:41 +02:00
DavHau
4db2e8303f
refactor: rename clanCore -> clan.core
2024-06-18 18:32:40 +07:00
Johannes Kirschbauer
c7008fd302
clan-core: add clan meta for ui usage
2024-05-31 16:26:46 +00:00