The utils module

marcodeployer.utils.authenticate(name, password)[source]

Returns true or false depending on the success of the name-password combination using the shadows or passwd file (The shadow file is preferred if it exists)

marcodeployer.utils.getip(interface, protocol=None, host=None)[source]

Returns the IP associated with the configured interface