RexOps / RexOps/Rex

support dynamic cmdb path expansions (custom macros)

Open
#1,202 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.