Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-11309

stdlib : convert a string to a resource

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • stdlib
    • None
    • Needs Assessment

    Description

      Basic Info
      Module Version: 8.1.0
      Puppet Version: 7.14.0
      OS Name/Version: Fedora

      When building relationships between modules, it can be helpful to pass some resources by name.  With hiera, these resources are always represented as a string.  But nothing converts them back to the actual resource.

      For example, I may want a specific element to notify another class.  If I instrument my class up so I can pass in a `notify_services` parameter, the string notification doesn't work as expected.   This will also make use of hiera a bit more familiar to folks coming from other systems.

      Desired Behavior: A way to convert a string (defined in hiera) to a resource definition

      Actual Behavior:

      The string coming in isn't convertible to a resource in any clear way.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcpunk Pat Riehecky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support