def rackspace_provisioner(username, key, region, keyname):
 from libcloud.compute.providers import get_driver, Provider
 driver = get_driver(Provider.RACKSPACE)(key=username, secret=key, region=region)
 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

def rackspace_provisioner ( username , key , region , keyname ) : from libcloud . compute . providers import get_driver , Provider driver = get_driver ( Provider . RACKSPACE ) ( key = username , secret = key , region = region ) 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
create a libcloudprovisioner for provisioning nodes on rackspace .