cleanup __link
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								b8c68fcb9e
							
						
					
				
			
			
				commit
				
					
						4c59a0fde1
					
				
			
		
					 3 changed files with 10 additions and 16 deletions
				
			
		| 
						 | 
					@ -19,7 +19,7 @@ REQUIRED PARAMETERS
 | 
				
			||||||
source::
 | 
					source::
 | 
				
			||||||
   Specifies the link source.
 | 
					   Specifies the link source.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
source::
 | 
					type::
 | 
				
			||||||
   Specifies the link type: Either hard or symoblic.
 | 
					   Specifies the link type: Either hard or symoblic.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,18 +31,16 @@ EXAMPLES
 | 
				
			||||||
--------
 | 
					--------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--------------------------------------------------------------------------------
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
# Create /etc/cdist-configured as an empty file
 | 
					# Create hard link of /etc/shadow
 | 
				
			||||||
__file /etc/cdist-configured --type file
 | 
					__file /root/shadow --source /etc/shadow --type hard
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Same but with a different object id
 | 
					# Relative symbolic link
 | 
				
			||||||
__file cdist-marker --type file --destination /etc/cdist-configured
 | 
					__file /etc/apache2/sites-enabled/www.test.ch   \
 | 
				
			||||||
 | 
					   --source ../sites-available/www.test.ch      \
 | 
				
			||||||
 | 
					   --type symbolic
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Use __file from another type
 | 
					# Relative absolute link
 | 
				
			||||||
__file /etc/issue --source "$__type/files/archlinux" --type file
 | 
					__file /opt/plone --source /home/services/plone --type symbolic
 | 
				
			||||||
 | 
					 | 
				
			||||||
# Supply some more settings
 | 
					 | 
				
			||||||
__file /etc/shadow --source "$__type/files/shadow" --type file \
 | 
					 | 
				
			||||||
   --owner root --group shadow --mode 0640
 | 
					 | 
				
			||||||
--------------------------------------------------------------------------------
 | 
					--------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +0,0 @@
 | 
				
			||||||
group
 | 
					 | 
				
			||||||
mode
 | 
					 | 
				
			||||||
owner
 | 
					 | 
				
			||||||
source
 | 
					 | 
				
			||||||
destination
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1 +1,2 @@
 | 
				
			||||||
 | 
					source
 | 
				
			||||||
type
 | 
					type
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue