Storage node now uses local zone variable name.
Puppet 3 scoping changes mean that the exported resources cannot see the parent scope $swift_zone variable, and must instead use the $zone variable passed to the device_endpoint defined type. Change-Id: I9780065c535da713c6d1d4a156f5d688e0ab9c63 Fixes: bug #1190459
This commit is contained in:
@@ -33,15 +33,15 @@ class openstack::swift::storage-node (
|
|||||||
|
|
||||||
define device_endpoint ($swift_local_net_ip, $zone, $weight) {
|
define device_endpoint ($swift_local_net_ip, $zone, $weight) {
|
||||||
@@ring_object_device { "${swift_local_net_ip}:6000/${name}":
|
@@ring_object_device { "${swift_local_net_ip}:6000/${name}":
|
||||||
zone => $swift_zone,
|
zone => $zone,
|
||||||
weight => $weight,
|
weight => $weight,
|
||||||
}
|
}
|
||||||
@@ring_container_device { "${swift_local_net_ip}:6001/${name}":
|
@@ring_container_device { "${swift_local_net_ip}:6001/${name}":
|
||||||
zone => $swift_zone,
|
zone => $zone,
|
||||||
weight => $weight,
|
weight => $weight,
|
||||||
}
|
}
|
||||||
@@ring_account_device { "${swift_local_net_ip}:6002/${name}":
|
@@ring_account_device { "${swift_local_net_ip}:6002/${name}":
|
||||||
zone => $swift_zone,
|
zone => $zone,
|
||||||
weight => $weight,
|
weight => $weight,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user