<commit_before># --------------------------------------------------------------------------
# Access Mechanism 
# --------------------------------------------------------------------------

This module uses the rest-client gem ( Version 1.6.7) to interact with the ciscoucs.

# --------------------------------------------------------------------------
#  Supported Functionality
# --------------------------------------------------------------------------
   - Create Service Profile

# -------------------------------------------------------------------------
# Functionality Description
# -------------------------------------------------------------------------

  Service Profile form Template:
  
  With a service profile template, service profiles can be created with the same basic parameters, such as the number of vNICs and vHBAs, and with identity information drawn from the same pools. 
  
  
  Service Profile from Server: 
  
  With existing server service profile can be created.
   

# -------------------------------------------------------------------------
# Summary of Parameters.
# -------------------------------------------------------------------------


    username: (Required) This parameter defines the username as a part of the credentials of the host.            
    
	password: (Required) This parameter defines the password as a part of the credentials of the host.  
	
	server: (Required) This parameter defines the ip address the host.   
	
    name: This parameter defines the name of the service profile.
    
    org: Source service profile path.
    
	ensure: (Required) This parameter is required to call the Create or Destroy method.
    Possible values: Present/Absent
    If the value of the ensure parameter is set to present, the module calls the Create method.
    If the value of the ensure parameter is set to absent, the module calls the Destroy method.

    name: (Required) This parameter defines the name or IP address of the host that needs to be added or removed from the datacenter/cluster in the vCenter. If this parameter is not provided explicitly in the manifest file, then the title of the type 'vc_host' is used.    
    
	source_template: Template name from which service profile needs to be created
	
	server_chassis_id => Server Chassis id of serouce server from which service profile needs to be created.
  
    server_slot: Server slot of the source server from which service profile needs to be created.
            
# -------------------------------------------------------------------------
# Parameter Signature 
# -------------------------------------------------------------------------


Service profile from template:

transport_ciscoucs { 'ciscoucs':
  username => 'admin',
  password => '<PASSWORD>',
  server   => '192.168.24.130',
}


ciscoucs_serviceprofile { 'name':
  name            => 'create_prof',
  org             => 'org-root',
  ensure          => present,
  source_template => 'test_temp',
  transport       => Transport_ciscoucs['ciscoucs'],
}


Service profile from existing server:

transport_ciscoucs { 'ciscoucs':
  username => 'admin',
  password => '<PASSWORD>',
  server   => '192.168.241.131',
}


ciscoucs_serviceprofile { 'name':
  name            => 'SP1',
  org             => 'org-root',
  ensure          => present,
  server_chassis_id => 'chassis-1',
  server_slot => 'blade-1',   
  transport       => Transport_ciscoucs['ciscoucs'],
}



# --------------------------------------------------------------------------
# Usage
# --------------------------------------------------------------------------
   
   Refer in the test directory.
   
  

#-------------------------------------------------------------------------------------------------------------------------
# End
#-------------------------------------------------------------------------------------------------------------------------   <commit_msg>changes in create profile readme.<commit_after># --------------------------------------------------------------------------
# Access Mechanism 
# --------------------------------------------------------------------------

This module uses the rest-client gem ( Version 1.6.7) to interact with the ciscoucs.

# --------------------------------------------------------------------------
#  Supported Functionality
# --------------------------------------------------------------------------
   - Create Service Profile

# -------------------------------------------------------------------------
# Functionality Description
# -------------------------------------------------------------------------

  Service Profile form Template:
  
  With a service profile template, service profiles can be created with the same basic parameters, such as the number of vNICs and vHBAs, and with identity information drawn from the same pools. 
  
  
  Service Profile from Server: 
  
  With existing server service profile can be created.
   

# -------------------------------------------------------------------------
# Summary of Parameters.
# -------------------------------------------------------------------------


    username: (Required) This parameter defines the username as a part of the credentials of the host.            
    
	password: (Required) This parameter defines the password as a part of the credentials of the host.  
	
	server: (Required) This parameter defines the ip address the host.   
	
    name: This parameter defines the name of the service profile.
    
    org: Source service profile path.
    
	ensure: (Required) This parameter is required to call the Create or Destroy method.
    Possible values: Present/Absent
    If the value of the ensure parameter is set to present, the module calls the Create method.
    If the value of the ensure parameter is set to absent, the module calls the Destroy method.

    name: (Required) This parameter defines the name or IP address of the host that needs to be added or removed from the datacenter/cluster in the vCenter. If this parameter is not provided explicitly in the manifest file, then the title of the type 'vc_host' is used.    
    
	source_template: Template name from which service profile needs to be created
	
	server_chassis_id => Server Chassis id of serouce server from which service profile needs to be created.
  
    server_slot: Server slot of the source server from which service profile needs to be created.
            
# -------------------------------------------------------------------------
# Parameter Signature 
# -------------------------------------------------------------------------


Service profile from template:

transport_ciscoucs { 'ciscoucs':
  username => 'admin',
  password => '<PASSWORD>',
  server   => '192.168.24.130',
}


ciscoucs_serviceprofile { 'name':
  name            => 'create_prof',
  org             => 'org-root',
  ensure          => present,
  source_template => 'test_temp',
  transport       => Transport_ciscoucs['ciscoucs'],
}


Service profile from existing server:

transport_ciscoucs { 'ciscoucs':
  username => 'admin',
  password => '<PASSWORD>',
  server   => '192.168.241.131',
}


ciscoucs_serviceprofile { 'name':
  name            => 'SP1',
  org             => 'org-root',
  ensure          => present,
  server_chassis_id => 'chassis-1',
  server_slot => 'blade-1',   
  transport       => Transport_ciscoucs['ciscoucs'],
}



# --------------------------------------------------------------------------
# Usage
# --------------------------------------------------------------------------
   
    Refer in the test directory.
   
   # puppet apply create_profile_server.pp
   # puppet apply create_profile_template.pp
   
  

#-------------------------------------------------------------------------------------------------------------------------
# End
#-------------------------------------------------------------------------------------------------------------------------   
{'fraction_non_alphanumeric': 0.33417180228902027, 'fraction_numerical': 0.007294679914476167, 'mean_word_length': 1.1544296938499052, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3816789', 'n_tokens_mistral': 1672, 'n_tokens_neox': 1587, 'n_words': 666}