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

Make environment_data_provider take arguments

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      Language 2015-07-08, Language 2015-07-22

      Description

      In environments one can use the default environment_data_provider of 'function' to provide data and it looks to the environment's function data() to provide the data. environment_data_provider can be set in an environment.conf.
      perhaps one could also specify the name of the function(s) in the environment.conf

      This ticket was originally also for the difficulty of configuring a data provider for a module. That has moved to PUP-4489.

      We should change the enviroment_data_provider to accept either just a symbolic name of a data provider (e.g. function), or an Array where the first entry is the symbolic name of the data provider, and subsequent entries are arguments to the constuctor. This enables the function data provider to be instantiated with a function name to call, a json data provider to be configured with a datadir and path etc. (This if they are used directly without a hierarchy (e.g. directly as opposed to in a hierarchy as described by PUP-4485).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              thomas.hallgren Thomas Hallgren
              Reporter:
              erict Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support