From 270f9064127a42d8ccb8fa582c4534fabfc130c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 25 Mar 2024 15:27:20 +0100 Subject: [PATCH 1/2] fix casing in facts generate logs --- pkgs/clan-cli/clan_cli/facts/check.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/facts/check.py b/pkgs/clan-cli/clan_cli/facts/check.py index ab009eb4b..ae2cae758 100644 --- a/pkgs/clan-cli/clan_cli/facts/check.py +++ b/pkgs/clan-cli/clan_cli/facts/check.py @@ -26,12 +26,16 @@ def check_secrets(machine: Machine, service: None | str = None) -> bool: else: secret_name = secret_fact["name"] if not secret_facts_store.exists(service, secret_name): - log.info(f"Secret fact {secret_fact} for service {service} is missing") + log.info( + f"Secret fact '{secret_fact}' for service {service} is missing." + ) missing_secret_facts.append((service, secret_name)) for public_fact in machine.secrets_data[service]["facts"]: if not public_facts_store.exists(service, public_fact): - log.info(f"public Fact {public_fact} for service {service} is missing") + log.info( + f"Public fact '{public_fact}' for service {service} is missing." + ) missing_public_facts.append((service, public_fact)) log.debug(f"missing_secret_facts: {missing_secret_facts}") From 68ac6321ee670d07021db24630b2a6e270caeb21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 25 Mar 2024 15:29:12 +0100 Subject: [PATCH 2/2] docs/backup: update command needed to regenerate backups --- docs/admins/backup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admins/backup.md b/docs/admins/backup.md index 636231d2b..a45c377f6 100644 --- a/docs/admins/backup.md +++ b/docs/admins/backup.md @@ -36,7 +36,7 @@ As a user you can also append to the list by adding your own directories to be b { clanCore.state.userdata.folders = [ "/home" "/root" ]; } ``` -Than run `clan secrets generate ` replacing `` with the actual machine name. +Than run `clan facts generate ` replacing `` with the actual machine name. This will generate the backup borg credentials and ssh keys for accessing the borgbackup repository. Your ssh public key will be stored in the root of the repository here at this location `./machines//facts/borgbackup.ssh.pub`. We need this for the next step.