def set_project_cfg_facts_if_unset(facts):
 config = {'default_node_selector': '', 'project_request_message': '', 'project_request_template': '', 'mcs_allocator_range': 's0:/2', 'mcs_labels_per_project': 5, 'uid_allocator_range': '1000000000-1999999999/10000'}
 if ('master' in facts):
  for (key, value) in config.items():
   if (key not in facts['master']):
    facts['master'][key] = value
 return facts

def set_project_cfg_facts_if_unset ( facts ) : config = { 'default_node_selector' : '' , 'project_request_message' : '' , 'project_request_template' : '' , 'mcs_allocator_range' : 's0:/2' , 'mcs_labels_per_project' : 5 , 'uid_allocator_range' : '1000000000-1999999999/10000' } if ( 'master' in facts ) : for ( key , value ) in config . items ( ) : if ( key not in facts [ 'master' ] ) : facts [ 'master' ] [ key ] = value return facts
set project configuration facts if not already present in facts dict dict: args: facts : existing facts returns: dict: the facts dict updated with the generated project configuration facts if they were not already present .