aboutsummaryrefslogtreecommitdiff
path: root/manifests/user.pp
blob: 4b60f9770cc1f6c74062f27a2b8916bf010bcd4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Inspired by backupninja::sandbox
class backup::user(
  $ensure         = present,
  $hosting_domain = $::domain,
  $sshkey         = hiera("compiled::ssh::key::${name}.${hosting_domain}"),
) {
  user::manage { $name:
    ensure   => $ensure,
    password => '*',
    comment  => "$name backup sandbox",
    gid      => 'backupninjas',
    shell    => '/bin/bash',
    homedir  => "${::backup::params::backupdir_remote}/${name}.${hosting_domain}",
    sshkey   => $sshkey,
  }
}