def configure_control_node(cluster, provider, logging_config=None):
 setup_action = 'start'
 if (provider == 'managed'):
  setup_action = 'restart'
 return run_remotely(username='root', address=cluster.control_node.address, commands=sequence([task_install_control_certificates(cluster.certificates.cluster.certificate, cluster.certificates.control.certificate, cluster.certificates.control.key), task_enable_flocker_control(cluster.control_node.distribution, setup_action), if_firewall_available(cluster.control_node.distribution, task_open_control_firewall(cluster.control_node.distribution))]))

def configure_control_node ( cluster , provider , logging_config = None ) : setup_action = 'start' if ( provider == 'managed' ) : setup_action = 'restart' return run_remotely ( username = 'root' , address = cluster . control_node . address , commands = sequence ( [ task_install_control_certificates ( cluster . certificates . cluster . certificate , cluster . certificates . control . certificate , cluster . certificates . control . key ) , task_enable_flocker_control ( cluster . control_node . distribution , setup_action ) , if_firewall_available ( cluster . control_node . distribution , task_open_control_firewall ( cluster . control_node . distribution ) ) ] ) )
configure flocker control service on the given node .