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

Provide Facts for a classifier to select whether to enable overriding the environment

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.2.0
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      New Feature

      Description

      A classifier may wish to allow an agent to override an environment only when they match certain facts. A common practice is to use the puppet_environment_facts module.

      Discussion settled on a new fact, agent_specified_environment, with the following semantics:

      • If no environment was specified via --environment and no environment was specified in puppet.conf, agent_specified_environment is nil.
      • If an environment is specified via --environment=dev, the value of agent_specified_environment should be "dev".
      • If an environment is specified in puppet.conf as environment=dev, the value of agent_specified_environment should be "dev".
      • If an environment is specified in puppet.conf as environment=dev, AND an environment is specified via --environment=test, the value of agent_specified_environment should be "test".

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  michael.smith Michael Smith
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: