Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-4806

Add a current_environmentpath server fact for the chosen environmentpath

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 3.8.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Coremunity

      Description

      It's possible to define multiple paths in the environmentpath configuration value, where puppet looks for environments. But afterwards during a puppet run, it isn't possible to determine easily which path was chosen. But there are at least two occurrences where the absolute path to a environment is needed:
      1.) Configure hiera datadir per environment
      2.) Configure config_version per environment

      I would suggest, that a variable is added to the top scope which contains the chosen path to the environment from the environmentpath configuration value and is also useable in the per environment environment.conf.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              vicinus Reinhard Vicinus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support