Dominic suggested:
-      local_ip         => $private_ip,
+      local_ip         => getvar("ipaddress_${private_interface}"),