Commit ef59526b authored by Jerome Charaoui's avatar Jerome Charaoui

Fix default value of $ssh_dir variable in server sandbox

parent bde29cc2
...@@ -57,14 +57,10 @@ class backupninja::server ( ...@@ -57,14 +57,10 @@ class backupninja::server (
# get created on the server # get created on the server
define sandbox( define sandbox(
$user = $name, $host = $::fqdn, $installuser = true, $dir = "${backupninja::server::backupdir}/${::fqdn}", $manage_ssh_dir = true, $user = $name, $host = $::fqdn, $installuser = true, $dir = "${backupninja::server::backupdir}/${::fqdn}", $manage_ssh_dir = true,
$ssh_dir = false, $authorized_keys_file = 'authorized_keys', $key = false, $keytype = 'dss', $backupkeys = "${fileserver}/keys/backupkeys", $uid = false, $ssh_dir = "${backupninja::server::backupdir}/${::fqdn}/.ssh", $authorized_keys_file = 'authorized_keys', $key = false, $keytype = 'dss', $backupkeys = "${fileserver}/keys/backupkeys", $uid = false,
$gid = "backupninjas", $backuptag = "backupninja-${::fqdn}", $nagios_description = 'backups') $gid = "backupninjas", $backuptag = "backupninja-${::fqdn}", $nagios_description = 'backups')
{ {
if $ssh_dir == false {
$ssh_dir = "${dir}/.ssh"
}
if $manage_nagios { if $manage_nagios {
# configure a passive service check for backups # configure a passive service check for backups
nagios::service::passive { $nagios_description: } nagios::service::passive { $nagios_description: }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment