modules: misc: Ensure the ssh key has a folder
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user