hsjobeki
e5b7e2773d
Merge pull request 'Inventory: improve role imports' ( #2189 ) from hsjobeki/clan-core:hsjobeki-main into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2189
2024-10-02 09:08:36 +00:00
Johannes Kirschbauer
d96cf90a52
Inventory/interface: optional instances, allow to use modules without inventory
2024-10-02 11:01:06 +02:00
Johannes Kirschbauer
4a469ed312
Inventory/tests: don't expect the default.nix to be imported anymore
2024-10-02 10:49:06 +02:00
Johannes Kirschbauer
a083a1f443
Fix: Admin module relative dependency
2024-10-02 10:36:48 +02:00
Johannes Kirschbauer
c6cbfcca42
Inventory/borgbackup: fixup structure
2024-10-02 10:01:45 +02:00
Johannes Kirschbauer
0819562a0b
Inventory/modules: use explicit roles only
2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
59889944b3
Inventory/test: add borgbackup to inventory test machine
2024-10-02 10:01:44 +02:00
Johannes Kirschbauer
6612a8ad0f
Inventory/docs: display explizit 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
clan-bot
10c7fb0a57
Merge pull request 'Fix leaks in vm tests' ( #2192 ) from fix-warning into main
2024-10-02 06:42:45 +00:00
Jörg Thalheim
eb8d99116c
test superflous test_vm_qmp
...
we already have other tests covering this and VMs + NixOS are slow
2024-10-01 20:57:07 +02:00
Jörg Thalheim
16fefb27bb
add temp_dir fixture
2024-10-01 20:54:19 +02:00
Jörg Thalheim
2a2818d050
add more custom prefixes for temporary directories
2024-10-01 20:54:19 +02:00
Jörg Thalheim
93b1391e4c
abort tests on python warning
2024-10-01 20:54:19 +02:00
Jörg Thalheim
082c3c1416
fix resource leaks in qmp tests
2024-10-01 20:54:19 +02:00
clan-bot
91408f4c72
Merge pull request 'fix resource leaks' ( #2191 ) from fix-warning into main
2024-10-01 18:03:58 +00:00
Jörg Thalheim
46c0b7cb2e
don't leak memory in global table unless we want to record performance
2024-10-01 19:32:00 +02:00
Jörg Thalheim
d5d6774124
fix file descriptor leak in cmd.run()
...
we were leaking pipes.
2024-10-01 19:27:47 +02:00
clan-bot
e014800f03
Merge pull request 'generate: don't set type=bool in argparse.BooleanOptionalAction' ( #2190 ) from fix-warning into main
2024-10-01 17:04:49 +00:00
Jörg Thalheim
237327ead3
start to name temporary directories in more places
2024-10-01 18:57:59 +02:00
Jörg Thalheim
716c6c9139
generate: don't set type=bool in argparse.BooleanOptionalAction
2024-10-01 18:48:54 +02:00
clan-bot
12fb2c48e4
Merge pull request 'docs: improve flake-parts reference' ( #2187 ) from hsjobeki/clan-core:hsjobeki-roles-interface into main
2024-10-01 09:28:13 +00:00
Johannes Kirschbauer
1b77b118e2
docs: improve flake-parts reference
2024-10-01 11:21:30 +02:00
clan-bot
6fc0954551
Merge pull request 'Automatic flake update - treefmt-nix - 2024-09-30T00:00+00:00' ( #2185 ) from flake-update-treefmt-nix-2024-09-30 into main
2024-09-30 00:43:42 +00:00
clan-bot
c8245cc54e
Merge pull request 'Automatic flake update - sops-nix - 2024-09-30T00:00+00:00' ( #2184 ) from flake-update-sops-nix-2024-09-30 into main
2024-09-30 00:37:38 +00:00
clan-bot
55990d9918
Merge pull request 'Automatic flake update - nixos-images - 2024-09-30T00:00+00:00' ( #2181 ) from flake-update-nixos-images-2024-09-30 into main
2024-09-30 00:37:24 +00:00
clan-bot
d52143263e
Merge pull request 'Automatic flake update - disko - 2024-09-30T00:00+00:00' ( #2179 ) from flake-update-disko-2024-09-30 into main
2024-09-30 00:35:17 +00:00
clan-bot
6ec9c7e901
Merge pull request 'Automatic flake update - nixos-facter-modules - 2024-09-30T00:00+00:00' ( #2180 ) from flake-update-nixos-facter-modules-2024-09-30 into main
2024-09-30 00:35:16 +00:00
clan-bot
cd066b5ab4
Merge pull request 'Automatic flake update - 2024-09-30T00:00+00:00' ( #2182 ) from flake-update-2024-09-30 into main
2024-09-30 00:35:03 +00:00
clan-bot
6effde7c91
Merge pull request 'Automatic flake update - nixpkgs - 2024-09-30T00:00+00:00' ( #2183 ) from flake-update-nixpkgs-2024-09-30 into main
2024-09-30 00:35:03 +00:00
Clan Merge Bot
13bab5ce6a
update flake lock - treefmt-nix - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/35dfece10c642eb52928a48bee7ac06a59f93e9a' (2024-09-23)
→ 'github:numtide/treefmt-nix/879b29ae9a0378904fbbefe0dadaed43c8905754' (2024-09-27)
2024-09-30 00:00:43 +00:00
Clan Merge Bot
c1dfdbe5cf
update flake lock - sops-nix - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'sops-nix':
'github:Mic92/sops-nix/e2d404a7ea599a013189aa42947f66cede0645c8' (2024-09-16)
→ 'github:Mic92/sops-nix/127a96f49ddc377be6ba76964411bab11ae27803' (2024-09-27)
2024-09-30 00:00:40 +00:00
Clan Merge Bot
2d547fa135
update flake lock - nixpkgs - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/568bfef547c14ca438c56a0bece08b8bb2b71a9c' (2024-09-23)
→ 'github:NixOS/nixpkgs/7eee17a8a5868ecf596bbb8c8beb527253ea8f4d' (2024-09-29)
2024-09-30 00:00:38 +00:00
Clan Merge Bot
2c884d9618
update flake lock - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/c61e50b63ad50dda5797b1593ad7771be496efbb' (2024-09-24)
→ 'github:nix-community/disko/b709e1cc33fcde71c7db43850a55ebe6449d0959' (2024-09-28)
• Updated input 'nixos-facter-modules':
'github:numtide/nixos-facter-modules/6eb13404bbe40b9a5ef9984792b27933658571fa' (2024-09-20)
→ 'github:numtide/nixos-facter-modules/e1ac6a83a5733788833fdff12aa074b5bdfdc965' (2024-09-29)
• Updated input 'nixos-images':
'github:nix-community/nixos-images/1420644027326490d330828b941a8e612b9cc130' (2024-09-23)
→ 'github:nix-community/nixos-images/acd37edb645a00b051f2ac88e02a2eb0ed459db6' (2024-09-26)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/568bfef547c14ca438c56a0bece08b8bb2b71a9c' (2024-09-23)
→ 'github:NixOS/nixpkgs/7eee17a8a5868ecf596bbb8c8beb527253ea8f4d' (2024-09-29)
• Updated input 'sops-nix':
'github:Mic92/sops-nix/e2d404a7ea599a013189aa42947f66cede0645c8' (2024-09-16)
→ 'github:Mic92/sops-nix/127a96f49ddc377be6ba76964411bab11ae27803' (2024-09-27)
• Updated input 'treefmt-nix':
'github:numtide/treefmt-nix/35dfece10c642eb52928a48bee7ac06a59f93e9a' (2024-09-23)
→ 'github:numtide/treefmt-nix/879b29ae9a0378904fbbefe0dadaed43c8905754' (2024-09-27)
2024-09-30 00:00:32 +00:00
Clan Merge Bot
80a5bab352
update flake lock - nixos-images - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixos-images':
'github:nix-community/nixos-images/1420644027326490d330828b941a8e612b9cc130' (2024-09-23)
→ 'github:nix-community/nixos-images/acd37edb645a00b051f2ac88e02a2eb0ed459db6' (2024-09-26)
2024-09-30 00:00:06 +00:00
Clan Merge Bot
f237c63d78
update flake lock - nixos-facter-modules - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'nixos-facter-modules':
'github:numtide/nixos-facter-modules/6eb13404bbe40b9a5ef9984792b27933658571fa' (2024-09-20)
→ 'github:numtide/nixos-facter-modules/e1ac6a83a5733788833fdff12aa074b5bdfdc965' (2024-09-29)
2024-09-30 00:00:05 +00:00
Clan Merge Bot
3a72abaa7f
update flake lock - disko - 2024-09-30T00:00+00:00
...
Flake lock file updates:
• Updated input 'disko':
'github:nix-community/disko/c61e50b63ad50dda5797b1593ad7771be496efbb' (2024-09-24)
→ 'github:nix-community/disko/b709e1cc33fcde71c7db43850a55ebe6449d0959' (2024-09-28)
2024-09-30 00:00:01 +00:00
Mic92
859603d4d9
Merge pull request 'clan-cli: update outdated help messages, and fix a typo' ( #2177 ) from lopter/clan-core:lo-fix-typos into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2177
2024-09-29 15:52:58 +00:00
Louis Opter
c132811c9e
Update outdated help messages and fix a typo
2024-09-29 15:52:58 +00:00
clan-bot
749bf3eadd
Merge pull request 'expose nixos-facter in cli' ( #2172 ) from nixos-facter into main
2024-09-29 15:07:37 +00:00
Jörg Thalheim
fed1283091
add nixos-facter to nixos installation test
2024-09-29 16:59:02 +02:00
Jörg Thalheim
e58b0df2db
fix broken eval check when nixpkgs.pkgs nixos option is used
2024-09-29 16:59:02 +02:00
Jörg Thalheim
5c6a0be70c
make default hardware report commit message nicer
2024-09-29 16:59:02 +02:00
Jörg Thalheim
bd8bc98863
allow to overwrite hardware configuration
...
now that we call it "update" hardware configurration and we are heading
towards facter anyway, we don't need all the force overide logic. Just
allow this to be overwritten by default.
2024-09-29 16:59:02 +02:00
Jörg Thalheim
deea4a74b3
wrap hardware generate arguments into an object
2024-09-29 16:59:02 +02:00
Jörg Thalheim
b97ee66e8f
don't expose polymorphic api
2024-09-29 16:21:53 +02:00
Jörg Thalheim
84cb54a537
remove unused location from ClanError
2024-09-29 16:21:53 +02:00
Jörg Thalheim
d4685e7208
put error description in same line as error for cli
2024-09-29 16:21:53 +02:00
Jörg Thalheim
11409b9608
if error doesn't have a message set, print a stack trace
2024-09-29 16:21:53 +02:00
Jörg Thalheim
6bd1bc894e
if command fails, print command and exit code, regardless if error message is set
2024-09-29 16:21:53 +02:00