def auth(nodes, pcsuser='hacluster', pcspasswd='hacluster', extra_args=None):
    cmd = ['pcs', 'cluster', 'auth']

    if pcsuser:
        cmd += ['-u', pcsuser]

    if pcspasswd:
        cmd += ['-p', pcspasswd]

    if isinstance(extra_args, (list, tuple)):
        cmd += extra_args
    cmd += nodes

    return __salt__['cmd.run_all'](cmd, output_loglevel='trace', python_shell=False)
Authorize nodes to the cluster
dataset/ETHPy150Open saltstack/salt/salt/modules/pcs.py/auth