support dynamic cmdb path expansions (custom macros)
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
The idea is to support something along the lines of
set cmdb => {
type => "YAML",
merge_behavior => 'LEFT_PRECEDENT',
path => [
"cmdb/{environment}/{server}.yml",
"cmdb/{environment}/default.yml",
"cmdb/{roles}.yml",
"cmdb/{server}.yml",
"cmdb/default.yml",
],
};
Notice the {roles} macro, which is taken from the CMDB YAML files read before that specific expansion pattern.
This pattern could be considered an "include" mechanism due to the merging behaviour of the CMDB YAML combination (dynamic includes); which yaml doesn't specify in its format specification.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the CMDB YAML path expansion and merge-behavior handling, then trace how previously read YAML values could supply custom macros; done means dynamic paths such as {roles} expand deterministically while preserving the documented merge behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100