Resolve [JENKINS-25718] Associate public ip has no effect with spot instances

This is largely by copy-and-paste similar code from the ondemand slave.