From 9ae44db29c516e02bb075888f6d320a49425a52f Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 30 Apr 2025 11:55:23 +0200 Subject: [PATCH] clanModules/password: Fix vars documentation --- clanModules/root-password/README.md | 8 ++++++-- clanModules/user-password/README.md | 9 ++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/clanModules/root-password/README.md b/clanModules/root-password/README.md index 63baf43e1..b76443ef9 100644 --- a/clanModules/root-password/README.md +++ b/clanModules/root-password/README.md @@ -7,8 +7,12 @@ features = [ "inventory" ] After the system was installed/deployed the following command can be used to display the root-password: ```bash -clan secrets get {machine_name}-password +clan vars get [machine_name] root-password/root-password ``` +See also: [Vars](../../manual/vars-backend.md) -See also: [Facts / Secrets](../../getting-started/secrets.md) +To regenerate the password run: +``` +clan vars generate --regenerate [machine_name] --generator root-password +``` diff --git a/clanModules/user-password/README.md b/clanModules/user-password/README.md index 15707ed40..e2e23f7c0 100644 --- a/clanModules/user-password/README.md +++ b/clanModules/user-password/README.md @@ -13,9 +13,12 @@ If setting the option prompt to true, the user will be prompted to type in their After the system was installed/deployed the following command can be used to display the user-password: ```bash -clan secrets get {machine_name}-user-password +clan vars get [machine_name] root-password/root-password ``` -See also: [Facts / Secrets](../../getting-started/secrets.md) +See also: [Vars](../../manual/vars-backend.md) -To regenerate the password, delete the password files in the clan directory and redeploy the machine. +To regenerate the password run: +``` +clan vars generate --regenerate [machine_name] --generator user-password +```