Johannes Kirschbauer
05c45371af
feat(buildInventory): move instance resolution into buildInventory
...
Such that buildClan doesn't have to compose the results
buildInventory should be more self contained. But it is NOT meant a
public API! use buildClan argument 'inventory' instead
2025-04-09 17:31:35 +02:00
Johannes Kirschbauer
f2e89d27fe
feat(lib/inventory): use clanLib instead of clan-core as internal specialArg. This has the benefit of beeing more narrow scoped.
2025-03-30 17:07:09 +02:00
Johannes Kirschbauer
2018de8d9e
Inventory: move build inventory into a module
2025-02-05 11:06:43 +07:00
Johannes Kirschbauer
ae2990657a
inventory: use special args to split build inventory into modules
2025-02-05 09:56:08 +07:00
Johannes Kirschbauer
3d8bececc3
inventory: fix test: supported roles beeing to lazy
2025-02-05 09:56:08 +07:00
Johannes Kirschbauer
9d06dec7d0
Inventory: add new module class: class='clan'
2025-02-05 09:56:08 +07:00
Johannes Kirschbauer
6755aa2c70
inventory: migrate tests
2025-02-04 13:20:15 +07:00
Johannes Kirschbauer
316e33f54a
Inventory: refactor build-inventory in more independent parts
2025-02-04 13:20:15 +07:00
Jörg Thalheim
8634087309
Do not deprecate directory argument
2025-02-02 10:30:26 +00:00
Qubasa
e36654daa1
clan: Add autoloaded clanModules from flake inputs. Rename 'directory' to 'self' in buildClan
2025-01-24 12:32:04 +07:00
Johannes Kirschbauer
65ccf8e970
Fix: add values prios eval tests
2025-01-10 12:06:01 +00:00
Johannes Kirschbauer
b6059fc506
Inventory: warning on undefined tags, instead of error.
2025-01-10 12:06:01 +00:00
Johannes Kirschbauer
db5350d3dc
Inventory: improve check service message
2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
25fb899f64
Inventory: init external modules support
2024-11-21 15:38:17 +00:00
Johannes Kirschbauer
d5c2c1af67
modules/frontmatter: init module interface as source of frontmatter
2024-11-15 20:04:06 +01:00
Johannes Kirschbauer
280878e30a
Inventory/constraints: add id's to inventory constraints to make them more observable
2024-11-13 13:58:43 +01:00
Johannes Kirschbauer
241db1cade
Modules/constraints: init constraints checking for inventory compatible modules
2024-11-12 18:36:38 +01:00
Jörg Thalheim
9923bfee74
inventory: make sure we always define all roles, even if we don't have machines
...
this makes write writing modules easier
add missing roles assertions
2024-11-04 12:57:07 +01:00
Jörg Thalheim
5f0b0205b2
drop "system" argument from inventory
2024-10-09 12:07:58 +02:00
Johannes Kirschbauer
2092101581
Inventory/enabled: add eval test
2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
f9387df76d
Inventory/enable: dont include disabled services
2024-10-08 12:24:57 +02:00
Johannes Kirschbauer
8c15f58df6
Inventory/tests: add more eval smoke tests
2024-10-08 12:06:03 +02:00
Johannes Kirschbauer
50f61979a5
Fix: update tests and error message
2024-10-07 23:04:30 +02:00
Johannes Kirschbauer
1d026f68ce
Fix: modules wrong path coercion
2024-10-07 22:47:49 +02:00
Johannes Kirschbauer
0819562a0b
Inventory/modules: use explicit roles only
2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
de882cb02f
Inventory: improve role imports
2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
61efab995a
Inventory: fixup imports to extraModules
2024-09-18 08:27:39 +02:00
Johannes Kirschbauer
7a4028660f
Inventory: fix eval tests
2024-09-16 22:52:40 +02:00
Johannes Kirschbauer
56b76f9827
Inventory: docs improvements
2024-09-16 22:52:40 +02: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
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
Johannes Kirschbauer
59c18b8411
Inventory: add assertions, allow external references
2024-08-13 19:22:29 +02:00
Johannes Kirschbauer
0bfba72739
Inventory: fix options
2024-07-17 10:55:46 +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
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
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
c678608105
Inventory: add system and sample machine
2024-07-01 21:25:02 +02:00
Johannes Kirschbauer
1628fdeaee
Inventory: add eval tests
2024-06-26 17:19:19 +02:00
Johannes Kirschbauer
3aa7a6ee69
Inventory: move to lib.inventory
2024-06-25 12:23:29 +00:00