Disable 'use chroot' for rsync::server

Allow to keep the right username/groupname for rsync'ed files if the
uids and gids are not in sync on all the servers
This commit is contained in:
François Charlier 2012-06-19 16:16:24 +02:00
parent 03d39f1663
commit a5788bae83
4 changed files with 6 additions and 2 deletions

View File

@ -26,6 +26,7 @@ class swift::ringserver(
class { 'rsync::server':
use_xinetd => true,
address => $local_net_ip,
use_chroot => 'no',
}
rsync::server::module { "swift_server":

View File

@ -26,5 +26,6 @@ class swift::storage(
class{ 'rsync::server':
use_xinetd => true,
address => $storage_local_net_ip,
use_chroot => 'no',
}
}

View File

@ -103,7 +103,8 @@ describe 'swift::storage::all' do
it { should contain_class('rsync::server').with(
{:use_xinetd => true,
:address => param_hash[:storage_local_net_ip]
:address => param_hash[:storage_local_net_ip],
:use_chroot => 'no'
}
)}

View File

@ -26,7 +26,8 @@ describe 'swift::storage' do
it { should contain_class('rsync::server').with(
{:use_xinetd => true,
:address => params[:storage_local_net_ip]
:address => params[:storage_local_net_ip],
:use_chroot => 'no'
}
)}
end