def cluster_setup(nodes, pcsclustername='pcscluster', extra_args=None):
    cmd = ['pcs', 'cluster', 'setup']

    cmd += ['--name', pcsclustername]

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

    return __salt__['cmd.run_all'](cmd, output_loglevel='trace', python_shell=False)
Create a grid object.
dataset/ETHPy150Open saltstack/salt/salt/modules/pcs.py/cluster_setup--crossover with--dataset/ETHPy150Open PythonProgramming/Beginning-Game-Development-with-Python-and-Pygame/gameobjects/grid.py/Grid.__init__