Fix foreman function to accept username/password/url data rather than hardcoding