#NEWLINE# def cluster_node_add( node , extra_args = None ) : #NEWLINE# #INDENT# "\n    Add a node to the pacemaker cluster via pcs command\n\n    node\n        node that should be added\n    extra_args\n        list of extra option for the 'pcs cluster node add' command\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' pcs.cluster_node_add node=node2.example.org'\n    " #NEWLINE# cmd = [ 'pcs' , 'cluster' , 'node' , 'add' ] #NEWLINE# cmd += [ node ] #NEWLINE# if isinstance ( extra_args , ( list , tuple ) ) : #NEWLINE# #INDENT# cmd += extra_args #NEWLINE# #UNINDENT# return __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'trace' , python_shell = False )