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

optionally add pe_serverversion to server_facts

    XMLWordPrintable

    Details

    • Template:
    • Acceptance Criteria:
      Hide

      Since pe_version is an optional characteristic on a Puppet Server, we could inspect /opt/puppetlabs/server/pe_version and if found, use it to set pe_version in server_facts.

      We could then update puppetlabs-stdlib to inspect that server_fact in a new function (rather than updating the old PE 3.x facts, to maintain backward compatibility) going forward as a best practice.

      Show
      Since pe_version is an optional characteristic on a Puppet Server, we could inspect /opt/puppetlabs/server/pe_version and if found, use it to set pe_version in server_facts . We could then update puppetlabs-stdlib to inspect that server_fact in a new function (rather than updating the old PE 3.x facts, to maintain backward compatibility) going forward as a best practice.
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      If the file `/opt/puppetlabs/server/pe_version` exists on an agent, the file will be read and added to the server facts under the name `pe_serverversion`.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Members of the Puppet Community have requested a standardized best practice to determine if a Puppet Agent is a PE or FOSS Puppet Agent. Since Puppet 4.x, there is no concept of a PE or FOSS Puppet Agent, but a Puppet Agent can be served a catalog by a PE or FOSS Puppet Server.

      A non-empty pe_version fact would both differentiate between PE or FOSS, but would allow for conditional code depending upon the specific version of PE.

      The pe_version fact is available in Puppet / PE 3.x.

      The pe_compiling_server_version function (which calls pe_server_version) is available on a PE Puppet Server after PE 3.x, but is not available on a FOSS Puppet Server, requiring the use of the is_function_available function to avoid generating an error when calling pe_compiling_server_version function on a FOSS Puppet Server.

      The is_function_available function is itself now deprecated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tom.kishel Thomas Kishel
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support