aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/ssh/folder.pp
blob: 462f8fbd40d8f34499d8eb979adfbf6b6573061a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Manage a ssh folder
define nodo:subsystem::ssh::folder(
  $home,
  $owner,
  $group,
  $ensure = 'directory',
) {
  if !defined(File["${home}/.ssh"]) {
    file { "${home}/.ssh":
      ensure  => $ensure,
      owner   => $owner,
      group   => $group,
      mode    => 0700,
    }
  }
}