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

Puppet should load files from pluginsync during catalog application

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.0.0
    • None
    • None
      • Custom functions saved to the agent during pluginsync should be available during catalog application
    • Froyo
    • New Feature
    • Hide
      A new feature where the use of the Deferred data type in a catalog makes it possible to call functions on the agent before the catalog is applied. It is now possible to call all functions implemented in Ruby on the agent side. (Notably, it is not possible to call functions written in the puppet language as they are not available on the agent).
      Show
      A new feature where the use of the Deferred data type in a catalog makes it possible to call functions on the agent before the catalog is applied. It is now possible to call all functions implemented in Ruby on the agent side. (Notably, it is not possible to call functions written in the puppet language as they are not available on the agent).
    • Needs Assessment

    Description

      Pluginsync saves files on the agent in the path /opt/puppetlabs/puppet/cache/*. Notably, custom defined functions are saved in the lib/puppet/functions/ inside the the cache directory.

      With the Deferred type in this [PR|]https://github.com/puppetlabs/puppet/pull/6951] merged, a catalog could defer a function to run during client application of the catalog, but the lack of loading in functions saved via pluginsync would result in an error with Puppet unable to find the definition for custom defined functions loaded via modules.

      Attachments

        Issue Links

          Activity

            People

              tony.vu Tony Vu
              tony.vu Tony Vu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support