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

puppet should support data in modules

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server
    • Labels:
    • Template:

      Description

      At present there is a way to store data in modules using the puppet backend for hiera but it is optional and kind of broken. The site hierarchy impacts how the puppet backend behaves which makes it impossible for module authors to supply data in their modules they can rely on

      I propose a new hiera backend that loads a hierarchy of data from the 'data' directory in the module, this module must always be present in a puppet install. This ability is key to the ability to create configurable forge modules that do not have hard coded values thanks to the puppet 3 hiera integration

      reference the users list thread https://groups.google.com/d/topic/puppet-users/pvqzeyHkrY4/discussion

        Attachments

          Issue Links

            Activity

            Hide
            apanek Alexander Pánek added a comment -

            Has there been any more recent work on this subject, or are there any plans for Puppet 4 in this regard?

            Show
            apanek Alexander Pánek added a comment - Has there been any more recent work on this subject, or are there any plans for Puppet 4 in this regard?
            Hide
            damona Damon Atkins added a comment -

            +1 Private Data in modules. e.g. Instead of if this OS then set this multiple page case statement.

            Show
            damona Damon Atkins added a comment - +1 Private Data in modules. e.g. Instead of if this OS then set this multiple page case statement.
            Hide
            amosshapira Amos Shapira added a comment -

            PUP-1640 addresses the same requirement.

            Show
            amosshapira Amos Shapira added a comment - PUP-1640 addresses the same requirement.
            Hide
            henrik.lindberg Henrik Lindberg added a comment -

            Amos Shapira thanks for pointing to PUP-1640 - that ticket is about the mechanism that makes it possible to plugin technology for automatic data lookup from both modules and directory environments - it comes with one implementation that supports functions. The function support may be sufficient for many module author's needs, but it is also expected that there will be other implementations made by the community.

            Show
            henrik.lindberg Henrik Lindberg added a comment - Amos Shapira thanks for pointing to PUP-1640 - that ticket is about the mechanism that makes it possible to plugin technology for automatic data lookup from both modules and directory environments - it comes with one implementation that supports functions. The function support may be sufficient for many module author's needs, but it is also expected that there will be other implementations made by the community.
            Hide
            henrik.lindberg Henrik Lindberg added a comment -

            PUP-4474 is the new Epic targeting Puppet 4.2.0 (replacing the old attempt to implement this described in the epic PUP-42).

            Show
            henrik.lindberg Henrik Lindberg added a comment - PUP-4474 is the new Epic targeting Puppet 4.2.0 (replacing the old attempt to implement this described in the epic PUP-42 ).
            Hide
            jorhett Jo Rhett added a comment -

            In the interest of closing old issues, this functionality is now available and seems to work as documented at https://docs.puppetlabs.com/puppet/latest/reference/lookup_quick.html

            Perhaps we can close this issue?

            Show
            jorhett Jo Rhett added a comment - In the interest of closing old issues, this functionality is now available and seems to work as documented at https://docs.puppetlabs.com/puppet/latest/reference/lookup_quick.html Perhaps we can close this issue?
            Hide
            henrik.lindberg Henrik Lindberg added a comment -

            Jo Rhett, yes, thanks - I will close this.

            Show
            henrik.lindberg Henrik Lindberg added a comment - Jo Rhett , yes, thanks - I will close this.
            Hide
            henrik.lindberg Henrik Lindberg added a comment -

            Closed as duplicate of ticket PUP-4474 (as that is the Epic that best describes what is already implemented and what remains.

            Show
            henrik.lindberg Henrik Lindberg added a comment - Closed as duplicate of ticket PUP-4474 (as that is the Epic that best describes what is already implemented and what remains.

              People

              • Assignee:
                Unassigned
                Reporter:
                redmine.exporter redmine.exporter
                QA Contact:
                Kurt Wall
              • Votes:
                27 Vote for this issue
                Watchers:
                44 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support