export __target_user to non-core
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								2830e2e894
							
						
					
				
			
			
				commit
				
					
						69fc63df1e
					
				
			
		
					 4 changed files with 8 additions and 2 deletions
				
			
		|  | @ -63,6 +63,7 @@ __cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname" | ||||||
| : ${__cdist_name_require:=require} | : ${__cdist_name_require:=require} | ||||||
| : ${__cdist_name_singleton:=singleton} | : ${__cdist_name_singleton:=singleton} | ||||||
| : ${__cdist_name_target_host:=target_host} | : ${__cdist_name_target_host:=target_host} | ||||||
|  | : ${__cdist_name_target_user:=target_user} | ||||||
| : ${__cdist_name_type:=type} | : ${__cdist_name_type:=type} | ||||||
| : ${__cdist_name_type_bin:=type_bin} | : ${__cdist_name_type_bin:=type_bin} | ||||||
| : ${__cdist_name_type_explorer:=type_explorer} | : ${__cdist_name_type_explorer:=type_explorer} | ||||||
|  | @ -82,6 +83,7 @@ __cdist_abs_myname="$__cdist_abs_mydir/$__cdist_myname" | ||||||
| : ${__cdist_name_var_global:=__$__cdist_name_global} | : ${__cdist_name_var_global:=__$__cdist_name_global} | ||||||
| : ${__cdist_name_var_manifest:=__$__cdist_name_manifest} | : ${__cdist_name_var_manifest:=__$__cdist_name_manifest} | ||||||
| : ${__cdist_name_var_target_host:=__$__cdist_name_target_host} | : ${__cdist_name_var_target_host:=__$__cdist_name_target_host} | ||||||
|  | : ${__cdist_name_var_target_user:=__$__cdist_name_target_user} | ||||||
| : ${__cdist_name_var_object:=__$__cdist_name_object} | : ${__cdist_name_var_object:=__$__cdist_name_object} | ||||||
| : ${__cdist_name_var_object_id:=__$__cdist_name_object_id} | : ${__cdist_name_var_object_id:=__$__cdist_name_object_id} | ||||||
| : ${__cdist_name_var_type:=__$__cdist_name_type} | : ${__cdist_name_var_type:=__$__cdist_name_type} | ||||||
|  |  | ||||||
|  | @ -29,6 +29,7 @@ __cdist_target_host="$1" | ||||||
| 
 | 
 | ||||||
| # Make target host available for non-core | # Make target host available for non-core | ||||||
| export $__cdist_name_var_target_host="$__cdist_target_host" | export $__cdist_name_var_target_host="$__cdist_target_host" | ||||||
|  | export $__cdist_name_var_target_user="$__cdist_remote_user" | ||||||
| 
 | 
 | ||||||
| # Export variables for core, which others do not reset | # Export variables for core, which others do not reset | ||||||
| export __cdist_local_base_dir | export __cdist_local_base_dir | ||||||
|  |  | ||||||
|  | @ -1,9 +1,10 @@ | ||||||
| Core: | Core: | ||||||
|    - write test case: test.sh |    - write test case: test.sh | ||||||
|  |    - doc/man/cdist-reference.text.sh: use static version from cdist-config | ||||||
|    - export remote user name -> $__user |    - export remote user name -> $__user | ||||||
| 
 | 
 | ||||||
| Types to be written/extended: | Types to be written/extended: | ||||||
|    - __ssh-keys (host/user) |    j __ssh-keys (host/user) | ||||||
|    - __service |    - __service | ||||||
|    - __file_edit |    - __file_edit | ||||||
|       - regexp replace (can probably cover all?) |       - regexp replace (can probably cover all?) | ||||||
|  | @ -19,5 +20,4 @@ Documentation: | ||||||
|       - cdist-trigger after first run from /var/lib/cdist/out/bin? |       - cdist-trigger after first run from /var/lib/cdist/out/bin? | ||||||
|    - Different environments (production, integration, development) |    - Different environments (production, integration, development) | ||||||
|       - via version control |       - via version control | ||||||
|    - Check all references in manpages, ensure all manpages exist |  | ||||||
|    - Ensure html output of manpages are published on the web |    - Ensure html output of manpages are published on the web | ||||||
|  |  | ||||||
|  | @ -169,6 +169,9 @@ __object_id:: | ||||||
| __target_host:: | __target_host:: | ||||||
|    The host we are deploying to. |    The host we are deploying to. | ||||||
|    Available for: initial manifest, type manifest, type codegen |    Available for: initial manifest, type manifest, type codegen | ||||||
|  | __target_user:: | ||||||
|  |    User to use for authentication on remote host. | ||||||
|  |    Currently static in core. | ||||||
| __type:: | __type:: | ||||||
|    Path to the current type. |    Path to the current type. | ||||||
|    Available for: type manifest |    Available for: type manifest | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue