def task_open_control_firewall(distribution):
 if is_centos_or_rhel(distribution):
  open_firewall = open_firewalld
 elif is_ubuntu(distribution):
  open_firewall = open_ufw
 else:
  raise DistributionNotSupported(distribution=distribution)
 return sequence([open_firewall(service) for service in ['flocker-control-api', 'flocker-control-agent']])

def task_open_control_firewall ( distribution ) : if is_centos_or_rhel ( distribution ) : open_firewall = open_firewalld elif is_ubuntu ( distribution ) : open_firewall = open_ufw else : raise DistributionNotSupported ( distribution = distribution ) return sequence ( [ open_firewall ( service ) for service in [ 'flocker-control-api' , 'flocker-control-agent' ] ] )
open the firewall for flocker-control .