modules: misc: Ensure the ssh key has a folder

This commit is contained in:
James Shubin
2024-09-29 00:53:11 -04:00
parent 65f26769ae
commit 149a85fcde

View File

@@ -20,6 +20,11 @@ class ssh_keygen($user) {
} }
# This also serves as a "handle" so that other resources can depend on # This also serves as a "handle" so that other resources can depend on
# this file getting created before they run. # this file getting created before they run.
file "${p}.ssh/" {
state => "exists",
mode => "u=rwx,go=",
owner => $user,
}
file "${p}.ssh/id_rsa" { file "${p}.ssh/id_rsa" {
mode => "u=rw,go=", mode => "u=rw,go=",
owner => $user, owner => $user,