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

Allow defaultfor to accept regex

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.4.0
    • Component/s: Docs, Types and Providers
    • Labels:
      None
    • Template:
    • Team:
      Platform Core
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Puppet will now accept a regex to match against a fact value for the `defaultfor` method of providers. (Associated puppet-docs PR has been opened)
    • QA Risk Assessment:
      No Action

      Description

      Right now the defaultfor method for providers only accepts hashes. Meaning for something that releases fairly often like Fedora, the DNF provider has to get bumped over and over.

      As Rick Sherman suggests, it makes sense to just set it to be Fedora >= 24, and then if Fedora changes to another package manager in the future (unlikely hopefully, but possible ) then we can add a lesser-than constraint also

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              peter.souter Peter Souter
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support