mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			538 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			538 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
#This script will invoke the config_chef_client directly.
 | 
						|
#If the chef-server and chef-client are installed successfully at first,
 | 
						|
#and then on the chef-server node configure the software for the chef-client nodes.
 | 
						|
#We can run 
 | 
						|
#  updatenode  <chef-client-nodes>  chef-client 
 | 
						|
#To configure the softare on the chef-client node.
 | 
						|
 | 
						|
./config_chef_client
 | 
						|
 | 
						|
if [ $? -ne 0 ]
 | 
						|
then
 | 
						|
    errmsg="Failed to run the postscript ./config_chef_client on $node"
 | 
						|
    logger -t xcat -p local4.err $errmsg
 | 
						|
    echo $errmsg
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
exit 0;
 |