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:
parent
c759ab69fe
commit
02efd7afe0
@ -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,
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user