From 9b0ec46879887f182697b7637d1eb34467cc5d3b Mon Sep 17 00:00:00 2001 From: David Cachau Date: Sat, 17 Dec 2022 10:39:15 +0100 Subject: [PATCH] Add the package dependency for unmanaged users If the user is already defined, add the requirement of the zsh package before changing the shell of the user. Without this, the catalog may fail if the shell is set before the package is installed on the machine. --- manifests/install.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/install.pp b/manifests/install.pp index 137e1d6..cfdb08e 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -141,6 +141,8 @@ User <| title == $name |> { shell => lookup('ohmyzsh::zsh_shell_path') } + + Package['zsh'] -> User <| title == $name |> } }