Ticket #243 (closed enhancement: fixed)
Patch: Probes for TCheetah
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.8.7 Release (LISA) |
Component: | bcfg2-server | Version: | |
Keywords: | TCheetah, probes | Cc: |
Description
All probes in repo/Probe will get accessible in the TCheetah template files through:
$self.probes['probename']
'probename' is the name of the probefile as in the Cfg Plugin.
Attachments
Change History
comment:2 Changed 17 years ago by desai
- Status changed from new to assigned
OK. This looks like good functionality, and we can probably merge it mostly as is. The one thing that I would like to change about it is moving the probes functionality out of individual plugins and into the generic metadata infrastructure, so that it is available to all plugins via client metadata. The current approach works well enough, but we end up executing probes once for each plugin that plans to consume probe data. This should be very doably for 0.8.6.
comment:3 Changed 17 years ago by desai
- Status changed from assigned to closed
- Resolution set to fixed
Similar code is now included in the system metadata module. This makes probe data available from self.metadata.probesprobename?. This code is committed as of [81bd425bc158fa0bfa5b39640f7e088deaf56587] (SVN r2527) and will be included in the 0.8.7pre1 release.