aboutsummaryrefslogtreecommitdiff
path: root/manifests/server.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2009-07-13 04:46:23 -0300
committerdrebs <drebs@riseup.net>2009-07-13 04:46:23 -0300
commit856beebe69dedfb23fe8a51ba7eed7846dba121a (patch)
tree31557d782b5ce3f0b83e05d5dbb1e5f7d8b5e23f /manifests/server.pp
parentfb99850d39a75c5a24ddd15dd237682de07271d3 (diff)
downloadpuppet-backupninja-856beebe69dedfb23fe8a51ba7eed7846dba121a.tar.gz
puppet-backupninja-856beebe69dedfb23fe8a51ba7eed7846dba121a.tar.bz2
adding support for keytypes in backupninja server.
Diffstat (limited to 'manifests/server.pp')
-rw-r--r--manifests/server.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 162d889..213022b 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -30,8 +30,8 @@ class backupninja::server {
# get created on the server
define sandbox(
$user = false, $host = false, $installuser = true, $dir = false, $manage_ssh_dir = true,
- $ssh_dir = false, $authorized_keys_file = false, $backupkeys = false, $uid = false,
- $gid = "backupninjas", $backuptag = false)
+ $ssh_dir = false, $authorized_keys_file = false, $backupkeys = false, $keytype = "rsa",
+ $uid = false, $gid = "backupninjas", $backuptag = false)
{
$real_user = $name ? {
@@ -84,7 +84,7 @@ class backupninja::server {
@@file { "${real_ssh_dir}/${real_authorized_keys_file}":
ensure => present,
mode => 0644, owner => 0, group => 0,
- source => "$real_backupkeys/${user}_id_rsa.pub",
+ source => "$real_backupkeys/${user}_id_${keytype}.pub",
require => File["${real_ssh_dir}"],
tag => "$real_backuptag",
}