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

Add RHEL9 support for services

    XMLWordPrintable

Details

    • Night's Watch
    • 1
    • NW - 2021-07-28
    • Needs Assessment
    • mwhahaha
    • Bug Fix
    • Use `systemd` as the default service provider for EL 9 variants such as RedHat or CentOS Stream.
    • Needs Assessment

    Description

      Puppet Version:
      puppet-7.8.0

      Puppet Server Version:
      OS Name/Version:

      CentOS Stream 9

      Describe your issue in as much detail as possibleā€¦

      Using the service provider results in chkconfig being used instead of systemd. This is similar to the steps we had to do for PUP-9069

      Describe steps to reproduceā€¦

      Use the service provider to manage a service.

      Desired Behavior:

      systemd provider is used

      Actual Behavior:

      chkconfig provider is used

      Example
      https://github.com/openstack/puppet-pacemaker/blob/master/manifests/service.pp#L60-L66

      Results in:

      <13>Jul 12 19:00:39 puppet-user: Error: Could not enable pcsd: Execution of '/sbin/chkconfig --add pcsd' returned 1: error reading information on service pcsd: No such file or directory
      <13>Jul 12 19:00:39 puppet-user: Error: /Stage[main]/Pacemaker::Service/Service[pcsd]/ensure: change from 'stopped' to 'running' failed: Could not enable pcsd: Execution of '/sbin/chkconfig --add pcsd' returned 1: error reading information on service pcsd: No such file or directory

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mwhahaha Alex Schultz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support