forked from ungleich-public/cdist
		
	document multi-master and multi-environment workflow
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								3599eeb42b
							
						
					
				
			
			
				commit
				
					
						70f2d1040f
					
				
			
		
					 2 changed files with 30 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +0,0 @@
 | 
			
		|||
Write cdist-best-practise:
 | 
			
		||||
   - Multi master setups
 | 
			
		||||
   - Different environments (production, integration, development)
 | 
			
		||||
      - via version control
 | 
			
		||||
| 
						 | 
				
			
			@ -31,6 +31,36 @@ Host *
 | 
			
		|||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
MULTI MASTER OR ENVIRONMENT SETUPS
 | 
			
		||||
----------------------------------
 | 
			
		||||
If you plan to distribute cdist among servers or use different
 | 
			
		||||
environments, you can do so easily with the included version
 | 
			
		||||
control git. For instance if you plan to use the typical three
 | 
			
		||||
environments production, integration and development, you can
 | 
			
		||||
realise this with git branches:
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
# Go to cdist checkout
 | 
			
		||||
cd /path/to/cdist
 | 
			
		||||
 | 
			
		||||
# Create branches
 | 
			
		||||
git branch development
 | 
			
		||||
git branch integration
 | 
			
		||||
git branch production
 | 
			
		||||
 | 
			
		||||
# Make use of a branch, for instance production
 | 
			
		||||
git checkout production
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
Similar if you want to have cdist checked out at multiple machines,
 | 
			
		||||
you can clone it multiple times:
 | 
			
		||||
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
machine-a % git clone git://your-git-server/cdist
 | 
			
		||||
machine-b % git clone git://your-git-server/cdist
 | 
			
		||||
--------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
SEE ALSO
 | 
			
		||||
--------
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue