Sync storage rings from rsync server

Change-Id: I154b59ee2b208e711099f056f52433c472f23709
Related-Bug: 1224592
This commit is contained in:
Chip Baeseman
2013-09-18 01:10:59 -05:00
parent 0f032137a5
commit 9ecb7c0059
2 changed files with 5 additions and 8 deletions

View File

@@ -107,11 +107,6 @@ class openstack::swift::proxy (
local_net_ip => $swift_local_net_ip,
}
# exports rsync gets that can be used to sync the ring files
@@swift::ringsync { ['account', 'object', 'container']:
ring_server => $swift_local_net_ip
}
# deploy a script that can be used for testing
class {'swift::test_file':
auth_server => $real_keystone_host,

View File

@@ -1,5 +1,6 @@
class openstack::swift::storage-node (
$swift_zone,
$ring_server,
$swift_hash_suffix = 'swift_secret',
$swift_local_net_ip = $::ipaddress_eth0,
$storage_type = 'loopback',
@@ -47,7 +48,8 @@ class openstack::swift::storage-node (
weight => $storage_weight,
}
# collect resources for synchronizing the ring databases
Swift::Ringsync<<||>>
# rsync rings from the ring server
swift::ringsync { ['account','container','object']:
ring_server => $ring_server,
}
}