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

Update loaders to load pcore in place of ruby resource types when compiling

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.6.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      If a file is found under <env-root>/.resource_types with the name of a resource type the following should happen:

      • A Ruby based Puppet::Type Class with the same name must not be loaded into the Ruby Runtime
      • A Pcore based implementation should instead be used
      • The catalog should have the exact same content as if the Ruby Puppet::Type implementation was used.
      • The requirement that Puppet::Type implementation must not be loaded is relaxed for the resource types built into Puppet (as some of them are loaded during the settings apply phase). It is allowed to also have a Pcore representation of those types for testing purposes.
      Show
      If a file is found under <env-root>/.resource_types with the name of a resource type the following should happen: A Ruby based Puppet::Type Class with the same name must not be loaded into the Ruby Runtime A Pcore based implementation should instead be used The catalog should have the exact same content as if the Ruby Puppet::Type implementation was used. The requirement that Puppet::Type implementation must not be loaded is relaxed for the resource types built into Puppet (as some of them are loaded during the settings apply phase). It is allowed to also have a Pcore representation of those types for testing purposes.
    • Story Points:
      2
    • Sprint:
      Language 2016-07-27, Language 2016-08-10
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      Should be documented as part of the experimental environment isolation feature

      Description

      When loading types, the pcore representation should have higher priority.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  henrik.lindberg Henrik Lindberg
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support