forked from ungleich-public/cdist
		
	Make __manifest usable in type manifests
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								689acb4c21
							
						
					
				
			
			
				commit
				
					
						7d2799d958
					
				
			
		
					 3 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -10,6 +10,7 @@ Changelog
 | 
				
			||||||
	* Bugfix __package_yum: Missing cat
 | 
						* Bugfix __package_yum: Missing cat
 | 
				
			||||||
	* Bugfix __start_on_boot: Correctly use sed and quotes (Steven Armstrong)
 | 
						* Bugfix __start_on_boot: Correctly use sed and quotes (Steven Armstrong)
 | 
				
			||||||
	* Feature __file: Support for --state exists (Steven Armstrong)
 | 
						* Feature __file: Support for --state exists (Steven Armstrong)
 | 
				
			||||||
 | 
						* Feature core: Make variable __manifest available to type manifests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2.0.9: 2012-03-12
 | 
					2.0.9: 2012-03-12
 | 
				
			||||||
	* Cleanup documentation: Fix environment variable list to be properly 
 | 
						* Cleanup documentation: Fix environment variable list to be properly 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -173,7 +173,7 @@ __explorer::
 | 
				
			||||||
    Available for: explorer, type explorer
 | 
					    Available for: explorer, type explorer
 | 
				
			||||||
__manifest::
 | 
					__manifest::
 | 
				
			||||||
    Directory that contains the initial manifest.
 | 
					    Directory that contains the initial manifest.
 | 
				
			||||||
    Available for: initial manifest
 | 
					    Available for: initial manifest, type manifest
 | 
				
			||||||
__global::
 | 
					__global::
 | 
				
			||||||
    Directory that contains generic output like explorer.
 | 
					    Directory that contains generic output like explorer.
 | 
				
			||||||
    Available for: initial manifest, type manifest, type gencode
 | 
					    Available for: initial manifest, type manifest, type gencode
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -92,6 +92,7 @@ class Manifest(object):
 | 
				
			||||||
            env = os.environ.copy()
 | 
					            env = os.environ.copy()
 | 
				
			||||||
            env.update(self.env)
 | 
					            env.update(self.env)
 | 
				
			||||||
            env.update({
 | 
					            env.update({
 | 
				
			||||||
 | 
					                '__manifest': self.local.manifest_path,
 | 
				
			||||||
                '__object': cdist_object.absolute_path,
 | 
					                '__object': cdist_object.absolute_path,
 | 
				
			||||||
                '__object_id': cdist_object.object_id,
 | 
					                '__object_id': cdist_object.object_id,
 | 
				
			||||||
                '__object_name': cdist_object.name,
 | 
					                '__object_name': cdist_object.name,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue