

def rackspace_provisioner(username, key, region, keyname):
    '\n    Create a LibCloudProvisioner for provisioning nodes on rackspace.\n\n    :param bytes username: The user to connect to rackspace with.\n    :param bytes key: The API key associated with the user.\n    :param bytes region: The rackspace region in which to launch the instance.\n    :param bytes keyname: The name of an existing ssh public key configured in\n       rackspace. The provision step assumes the corresponding private key is\n       available from an agent.\n    '
    from libcloud.compute.providers import get_driver, Provider
    driver = get_driver(Provider.RACKSPACE)(key=username, secret=key, region=provisioner)
    provisioner = LibcloudProvisioner(driver=driver, keyname=keyname, image_names=IMAGE_NAMES, create_node_arguments=(lambda **kwargs: {
        'ex_config_drive': 'true',
    }), provision=provision_rackspace, default_size='performance1-8', get_default_user=get_default_username)
    return provisioner

dataset/ETHPy150Open ClusterHQ/flocker/flocker/provision/_rackspace.py rackspace_provisioner/VarMisuse@48/229 `region`->`provisioner`