def cluster_node_add(node, extra_args=None):
 cmd = ['pcs', 'cluster', 'node', 'add']
 cmd += [node]
 if isinstance(extra_args, (list, tuple)):
  cmd += extra_args
 return __salt__['cmd.run_all'](cmd, output_loglevel='trace', python_shell=False)

def cluster_node_add ( node , extra_args = None ) : cmd = [ 'pcs' , 'cluster' , 'node' , 'add' ] cmd += [ node ] if isinstance ( extra_args , ( list , tuple ) ) : cmd += extra_args return __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'trace' , python_shell = False )
add a node to the pacemaker cluster via pcs command node node that should be added extra_args list of extra option for the pcs cluster node add command cli example: .