def provision(distribution, package_source, variants):
 commands = []
 if (Variants.DISTRO_TESTING in variants):
  commands.append(task_enable_updates_testing(distribution))
 if (Variants.DOCKER_HEAD in variants):
  commands.append(task_enable_docker_head_repository(distribution))
 commands.append(task_install_docker(distribution))
 commands.append(task_install_flocker(package_source=package_source, distribution=distribution))
 commands.append(task_install_docker_plugin(package_source=package_source, distribution=distribution))
 commands.append(task_enable_docker(distribution))
 return sequence(commands)

def provision ( distribution , package_source , variants ) : commands = [ ] if ( Variants . DISTRO_TESTING in variants ) : commands . append ( task_enable_updates_testing ( distribution ) ) if ( Variants . DOCKER_HEAD in variants ) : commands . append ( task_enable_docker_head_repository ( distribution ) ) commands . append ( task_install_docker ( distribution ) ) commands . append ( task_install_flocker ( package_source = package_source , distribution = distribution ) ) commands . append ( task_install_docker_plugin ( package_source = package_source , distribution = distribution ) ) commands . append ( task_enable_docker ( distribution ) ) return sequence ( commands )
provision a clean ubuntu 12 .