aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-23 14:40:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-23 14:40:31 -0300
commitf9b3ea701d231871b3dc1a5bee5266b735df71aa (patch)
tree083b98e938441ac64da10c812a5905768d5448c2 /manifests
parent40b3ff5aee4ddbbc8cbd165d93fec28c4069048b (diff)
downloadpuppet-backup-f9b3ea701d231871b3dc1a5bee5266b735df71aa.tar.gz
puppet-backup-f9b3ea701d231871b3dc1a5bee5266b735df71aa.tar.bz2
Adds backup::user
Diffstat (limited to 'manifests')
-rw-r--r--manifests/user.pp16
1 files changed, 16 insertions, 0 deletions
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,
+ }
+}