cleanups in bin/
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								7431802b03
							
						
					
				
			
			
				commit
				
					
						9955dc74c6
					
				
			
		
					 4 changed files with 7 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -36,7 +36,6 @@ code="$(__cdist_object_code "$__cdist_object")-${__cdist_gencode_type}"
 | 
			
		|||
 | 
			
		||||
echo "Checking code-${__cdist_gencode_type} for $__cdist_object ..."
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ -e "$code" ]; then
 | 
			
		||||
   if [ -f "$code" ]; then
 | 
			
		||||
      if [ -x "$code" ]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,7 +18,7 @@
 | 
			
		|||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
#
 | 
			
		||||
#
 | 
			
		||||
# Apply configuration to a host
 | 
			
		||||
# Deploy configuration to a host
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
. cdist-config
 | 
			
		||||
| 
						 | 
				
			
			@ -45,8 +45,8 @@ __cdist_init_deploy           "$__cdist_target_host"
 | 
			
		|||
 | 
			
		||||
# Transfer cdist executables
 | 
			
		||||
echo "Transferring cdist binaries to $__cdist_target_host ..."
 | 
			
		||||
cdist-dir push "$__cdist_target_host" "${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}"
 | 
			
		||||
 | 
			
		||||
cdist-dir push                "$__cdist_target_host" \
 | 
			
		||||
   "${__cdist_abs_mydir}" "${__cdist_remote_bin_dir}"
 | 
			
		||||
cdist-explorer-run-global     "$__cdist_target_host"
 | 
			
		||||
cdist-manifest-run-init       "$__cdist_target_host"
 | 
			
		||||
cdist-object-all              "$__cdist_target_host" cdist-object-process
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -25,14 +25,11 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
. cdist-config
 | 
			
		||||
if [ $# -ne 4 ]; then
 | 
			
		||||
   __cdist_usage "<push|pull> <target host> <src dir> <dst dir>"
 | 
			
		||||
fi
 | 
			
		||||
[ $# -eq 4 ] || __cdist_usage "<push|pull> <target host> <src dir> <dst dir>"
 | 
			
		||||
set -ue
 | 
			
		||||
 | 
			
		||||
__cdist_action="$1"; shift
 | 
			
		||||
__cdist_target_host="$1"; shift
 | 
			
		||||
 | 
			
		||||
__cdist_src_dir="$1"; shift
 | 
			
		||||
__cdist_dst_dir="$1"; shift
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,6 +10,9 @@ CORE
 | 
			
		|||
   __cdist_echo [level] [messages...]
 | 
			
		||||
      level := syslog alike:
 | 
			
		||||
         debug, notice, err
 | 
			
		||||
- Think about moving cdist-type-build-emulation out of cdist-manifest-run to
 | 
			
		||||
   cdist-deploy-to: more dependency of cdist-manifest-run, but a lot of
 | 
			
		||||
   less cycles consumed
 | 
			
		||||
 | 
			
		||||
TYPES
 | 
			
		||||
------
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue