clarify in the example that override don't touch parameter witch are not
present in the 2nd call
This commit is contained in:
		
					parent
					
						
							
								ab3b151918
							
						
					
				
			
			
				commit
				
					
						1b455e810b
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -180,7 +180,7 @@ How to override objects:
 | 
			
		|||
# for example in the inital manifest
 | 
			
		||||
 | 
			
		||||
# reate user account foobar with some hash for password
 | 
			
		||||
__user foobar --password 'some_fancy_hash'
 | 
			
		||||
__user foobar --password 'some_fancy_hash' --home /home/foobarexample
 | 
			
		||||
 | 
			
		||||
# ... many statements and includes in the manifest later ...
 | 
			
		||||
# somewhere in a conditionaly sourced manifest 
 | 
			
		||||
| 
						 | 
				
			
			@ -191,6 +191,8 @@ __user foobar --password 'some_other_hash'
 | 
			
		|||
 | 
			
		||||
# this tells cdist, that you know that this is an override and should be accepted
 | 
			
		||||
CDIST_ALLOW_OVERRIDE=true __user foobar --password 'some_other_hash'
 | 
			
		||||
# its only an override, means the parameter --home is not touched 
 | 
			
		||||
# and stay at the original value of /home/foobarexample
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue