From 149a85fcde6b10bd92a0bfb5e44a4e8431cbf16b Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 29 Sep 2024 00:53:11 -0400 Subject: [PATCH] modules: misc: Ensure the ssh key has a folder --- modules/misc/main.mcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/misc/main.mcl b/modules/misc/main.mcl index 04f30a57..86c1d6f9 100644 --- a/modules/misc/main.mcl +++ b/modules/misc/main.mcl @@ -20,6 +20,11 @@ class ssh_keygen($user) { } # This also serves as a "handle" so that other resources can depend on # this file getting created before they run. + file "${p}.ssh/" { + state => "exists", + mode => "u=rwx,go=", + owner => $user, + } file "${p}.ssh/id_rsa" { mode => "u=rw,go=", owner => $user,