Make __manifest usable in type manifests

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-04-04 17:21:54 +02:00
parent 689acb4c21
commit 7d2799d958
3 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Changelog
* Bugfix __package_yum: Missing cat
* Bugfix __start_on_boot: Correctly use sed and quotes (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
* Cleanup documentation: Fix environment variable list to be properly

View File

@ -173,7 +173,7 @@ __explorer::
Available for: explorer, type explorer
__manifest::
Directory that contains the initial manifest.
Available for: initial manifest
Available for: initial manifest, type manifest
__global::
Directory that contains generic output like explorer.
Available for: initial manifest, type manifest, type gencode

View File

@ -92,6 +92,7 @@ class Manifest(object):
env = os.environ.copy()
env.update(self.env)
env.update({
'__manifest': self.local.manifest_path,
'__object': cdist_object.absolute_path,
'__object_id': cdist_object.object_id,
'__object_name': cdist_object.name,