This function gets called when the proxy starts up.

def init(opts):
    '''
    This function gets called when the proxy starts up.
    '''
    if 'host' not in opts['proxy']:
        log.critical('No \'host\' key found in pillar for this proxy.')
        return False
    if 'username' not in opts['proxy']:
        log.critical('No \'username\' key found in pillar for this proxy.')
        return False
    if 'password' not in opts['proxy']:
        log.critical('No \'passwords\' key found in pillar for this proxy.')
        return False

    DETAILS['url'] = 'https://{0}/nuova'.format(opts['proxy']['host'])
    DETAILS['headers'] = {'Content-Type': 'application/x-www-form-urlencoded',
                          'Content-Length': 62,
                          'USER-Agent': 'lwp-request/2.06'}

    # Set configuration details
    DETAILS['host'] = opts['proxy']['host']
    DETAILS['username'] = opts['proxy'].get('username')
    DETAILS['password'] = opts['proxy'].get('password')

    # Ensure connectivity to the device
    log.debug("Attempting to connect to cimc proxy host.")
    get_config_resolver_class("computeRackUnit")
    log.debug("Successfully connected to cimc proxy host.")

    DETAILS['initialized'] = True