Move forge tailnet secrets to agenix
This commit is contained in:
parent
8aebf56d6d
commit
20964e8ed7
9 changed files with 135 additions and 7 deletions
|
|
@ -191,7 +191,9 @@ in
|
|||
set -euo pipefail
|
||||
|
||||
list_users() {
|
||||
${pkgs.headscale}/bin/headscale users list -o json
|
||||
local users_json
|
||||
users_json="$(${pkgs.headscale}/bin/headscale users list -o json)"
|
||||
printf '%s\n' "$users_json" | ${pkgs.jq}/bin/jq -c 'if type == "array" then . else [] end'
|
||||
}
|
||||
|
||||
ensure_user() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue