This commit is contained in:
Vivian 2023-05-02 10:05:49 +02:00
parent f5cdc276d4
commit b7a600879a
4 changed files with 13 additions and 11 deletions

View file

@ -4,6 +4,7 @@ let
cfg = config.services.v.vault;
hostIP = config.deployment.targetHost;
# Find all vault hosts that do not have the same IP as the current host
vault_hosts =
filter ({ tags ? [ ], ip ? "", ... }: (elem "vault" tags) && (ip != hostIP))
flat_hosts;