diff --git a/manifests/provision.pp b/manifests/provision.pp index a653a28..3dd6c3c 100644 --- a/manifests/provision.pp +++ b/manifests/provision.pp @@ -187,7 +187,7 @@ class openstack::provision( Keystone_user[$alt_username], Glance_image[$image_name], Quantum_network[$public_network_name], - ], + ], } } diff --git a/manifests/swift/device_endpoint.pp b/manifests/swift/device_endpoint.pp new file mode 100644 index 0000000..d281e72 --- /dev/null +++ b/manifests/swift/device_endpoint.pp @@ -0,0 +1,17 @@ +# +# Exports endpoints for all swift devices +# +define openstack::swift::device_endpoint ($swift_local_net_ip, $zone, $weight) { + @@ring_object_device { "${swift_local_net_ip}:6000/${name}": + zone => $zone, + weight => $weight, + } + @@ring_container_device { "${swift_local_net_ip}:6001/${name}": + zone => $zone, + weight => $weight, + } + @@ring_account_device { "${swift_local_net_ip}:6002/${name}": + zone => $zone, + weight => $weight, + } +} diff --git a/manifests/swift/storage-node.pp b/manifests/swift/storage-node.pp index 10fee85..6d2b602 100644 --- a/manifests/swift/storage-node.pp +++ b/manifests/swift/storage-node.pp @@ -41,22 +41,7 @@ class openstack::swift::storage-node ( storage_local_net_ip => $swift_local_net_ip, } - define device_endpoint ($swift_local_net_ip, $zone, $weight) { - @@ring_object_device { "${swift_local_net_ip}:6000/${name}": - zone => $zone, - weight => $weight, - } - @@ring_container_device { "${swift_local_net_ip}:6001/${name}": - zone => $zone, - weight => $weight, - } - @@ring_account_device { "${swift_local_net_ip}:6002/${name}": - zone => $zone, - weight => $weight, - } - } - - device_endpoint { $storage_devices: + openstack::swift::device_endpoint { $storage_devices: swift_local_net_ip => $swift_local_net_ip, zone => $swift_zone, weight => $storage_weight,