From: Silvio Rhatto Date: Thu, 23 Jun 2016 17:40:31 +0000 (-0300) Subject: Adds backup::user X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f9b3ea701d231871b3dc1a5bee5266b735df71aa;p=puppet-backup.git Adds backup::user --- diff --git a/manifests/user.pp b/manifests/user.pp new file mode 100644 index 0000000..4b60f97 --- /dev/null +++ b/manifests/user.pp @@ -0,0 +1,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, + } +}