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

Puppet should load files from pluginsync during catalog application

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 6.0.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      • Custom functions saved to the agent during pluginsync should be available during catalog application
    • Team:
      Server
    • Release Notes:
      New Feature
    • Release Notes Summary:
      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).
    • QA Risk Assessment:
      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

          Activity

            jsd-sla-details-panel

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: