begin to cleanup bin/cdist-object-explorer-all
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								6e6643d9d1
							
						
					
				
			
			
				commit
				
					
						06ce87a289
					
				
			
		
					 2 changed files with 20 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -49,9 +49,11 @@ cdist-manifest-init           "$__cdist_target_host" "$__cdist_out_object_dir"
 | 
			
		|||
# Create dependent objects - BUG: does not abort on error in manifest!!!!
 | 
			
		||||
cdist-manifest-run-all        "$__cdist_target_host" "$__cdist_out_object_dir"
 | 
			
		||||
 | 
			
		||||
# Run explorer of each type for every object of types with explorer
 | 
			
		||||
cdist-object-explorer-all     "$__cdist_target_host" "$__cdist_out_object_dir"
 | 
			
		||||
 | 
			
		||||
exit 2
 | 
			
		||||
 | 
			
		||||
cdist-object-explorer-all     "$__cdist_target_host" "$__cdist_out_object_dir"
 | 
			
		||||
cdist-object-codegen-all      "$__cdist_target_host" "$__cdist_out_object_dir" "$__cdist_out_execs"
 | 
			
		||||
cdist-exec-transfer           "$__cdist_target_host" "$__cdist_out_execs"
 | 
			
		||||
cdist-exec-run                "$__cdist_target_host"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,6 +28,23 @@ set -eu
 | 
			
		|||
__cdist_target_host="$1"; shift
 | 
			
		||||
__cdist_object_base_dir="$1"; shift
 | 
			
		||||
 | 
			
		||||
################################################################################
 | 
			
		||||
# New code
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Get listing of objects
 | 
			
		||||
 | 
			
		||||
# Get listing of types used
 | 
			
		||||
 | 
			
		||||
# For every type that has explorers, Transfer the explorers
 | 
			
		||||
 | 
			
		||||
# For every object of a type that has explorers, execute the explorers
 | 
			
		||||
# and retrieve the results
 | 
			
		||||
 | 
			
		||||
################################################################################
 | 
			
		||||
# Old code
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
__cdist_object_list "$__cdist_object_base_dir" > "$__cdist_tmp_file"
 | 
			
		||||
 | 
			
		||||
# need to create pseudo array, as ssh in cdist-explorer-run will destroy while-read loops
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue