Add support for anycasting

http://projects.puppetlabs.com/issues/12590