Skip to content

Using something like an 'include' directive? or better with templates #138

@jbaksta

Description

@jbaksta

I have a odd need to run probably 3 (2 at least) different configs for NHC on a node (at different points in their boot / triage cycles). Many of the checks are the same between them all and maybe this is better for a templating engine, but I'd prefer to keep the configs in one place from the templating engine we already have and then do an include. An example might be:

production NHC

include /etc/nhc/pre_cfg_checks
include /etc/nhc/post_cfg_checks
include /etc/nhc/prod_checks

With a precursor run to cfg checks just be

include /etc/nhc/pre_cfg_checks

Again, this may be more elegant in a templating engine like ERB or Jinja2. Just posing a thought I guess. I could also be missing something totally obvious as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions