Allow multiple instances of swift::storage::server on one host

Adding the server instance's name to the rsync type avoids a duplicate resource
error.
This commit is contained in:
Branan Purvine-Riley 2012-06-14 11:32:48 -07:00
parent c759ab69fe
commit 02efd7afe0
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ define swift::storage::server(
$bind_port = $name
rsync::server::module { "${type}":
rsync::server::module { "${type}_${name}":
path => $devices,
lock_file => "/var/lock/${type}.lock",
uid => $owner,

View File

@ -121,7 +121,7 @@ describe 'swift::storage::server' do
req_params
end
it { should contain_rsync__server__module("#{t}").with(
it { should contain_rsync__server__module("#{t}_8000").with(
:path => '/srv/node',
:lock_file => "/var/lock/#{t}.lock",
:uid => 'swift',