def cib_create(cibfile, scope='configuration', extra_args=None):
 cmd = ['pcs', 'cluster', 'cib', cibfile]
 if isinstance(scope, six.string_types):
  cmd += ['scope={0}'.format(scope)]
 if isinstance(extra_args, (list, tuple)):
  cmd += extra_args
 return __salt__['cmd.run_all'](cmd, output_loglevel='trace', python_shell=False)

def cib_create ( cibfile , scope = 'configuration' , extra_args = None ) : cmd = [ 'pcs' , 'cluster' , 'cib' , cibfile ] if isinstance ( scope , six . string_types ) : cmd += [ 'scope={0}' . format ( scope ) ] if isinstance ( extra_args , ( list , tuple ) ) : cmd += extra_args return __salt__ [ 'cmd.run_all' ] ( cmd , output_loglevel = 'trace' , python_shell = False )
create a cib-file from the current cib of the cluster cibfile name/path of the file containing the cib scope specific section of the cib extra_args additional options for creating the cib-file cli example: .