modules: misc: Make the ssh keygen module more useful

This commit is contained in:
James Shubin
2024-09-26 12:52:27 -04:00
parent 9a752da13d
commit 761030b5b8

View File

@@ -15,5 +15,13 @@ class ssh_keygen($user) {
],
creates => "${p}.ssh/id_rsa",
user => $user,
Before => File["${p}.ssh/id_rsa"],
}
# This also serves as a "handle" so that other resources can depend on
# this file getting created before they run.
file "${p}.ssh/id_rsa" {
mode => "u=rw,go=",
owner => $user,
}
}