def configure_zfs(node, variants):
 return sequence([run_remotely(username='root', address=node.address, commands=task_upgrade_kernel(distribution=node.distribution)), node.reboot(), run_remotely(username='root', address=node.address, commands=sequence([task_install_zfs(distribution=node.distribution, variants=variants), task_create_flocker_pool_file()])), Effect(Func((lambda : configure_ssh(node.address, 22))))])

def configure_zfs ( node , variants ) : return sequence ( [ run_remotely ( username = 'root' , address = node . address , commands = task_upgrade_kernel ( distribution = node . distribution ) ) , node . reboot ( ) , run_remotely ( username = 'root' , address = node . address , commands = sequence ( [ task_install_zfs ( distribution = node . distribution , variants = variants ) , task_create_flocker_pool_file ( ) ] ) ) , Effect ( Func ( ( lambda : configure_ssh ( node . address , 22 ) ) ) ) ] )
configure zfs for use as a flocker backend .