clan: facts generate allow regeneration of facts

Add `--regenerate` flag to `clan facts generate` which allows forcing
the generation of facts, regardless of their current existence.

Examples:
```
clan facts generate [MACHINE] --regenerate
```
or
```
clan facts generate [MACHINE] --service [SERVICE] --regenerate
```
This commit is contained in:
a-kenji
2024-05-26 22:55:48 +02:00
parent 4daf036a3c
commit 81e0700826
4 changed files with 17 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ def deploy_nixos(machines: MachineGroup) -> None:
env = os.environ.copy()
env["NIX_SSHOPTS"] = ssh_arg
generate_facts([machine], None)
generate_facts([machine], None, False)
upload_secrets(machine)
path = upload_sources(".", target)