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

RHEL7 traditional services should have provider 'redhat' not 'init'

    Details

    • Template:
    • Story Points:
      1
    • Sprint:
      Client 2016-04-20
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Previously, SysVinit services running on RedHat systems which use systemd as the default init system were mishandled by Puppet. Instead of using the RedHat service provider and `chkconfig` to query services, Puppet fell back to the parent init provider and omitted the `enable` status. This has been fixed by ensuring the RedHat provider is always used for these services instead.
      Show
      Previously, SysVinit services running on RedHat systems which use systemd as the default init system were mishandled by Puppet. Instead of using the RedHat service provider and `chkconfig` to query services, Puppet fell back to the parent init provider and omitted the `enable` status. This has been fixed by ensuring the RedHat provider is always used for these services instead.

      Description

      I've been digging through the catalog post-compile and I noticed the following pattern. For all services that are in systemd, they have the provider 'systemd'. However, all services that are in the legacy /etc/init.d space are registered with the 'init' provider even though they are clearly registered in chkconfig.

      I'm a bit worried about this since it seems that something is potentially wrong with the provider load order which would be endemic of other issues.

      !ruby/object:Puppet::Resource
        type: Service
        title: netconsole
        tags: 
          - service
          - netconsole
        parameters: 
          !ruby/sym ensure: !ruby/sym stopped
      # This should be 'redhat'!
          !ruby/sym provider: !ruby/sym init
          !ruby/sym hasstatus: !ruby/sym "true"
          !ruby/sym path: 
            - /etc/init.d
          !ruby/sym pattern: netconsole
          !ruby/sym loglevel: !ruby/sym notice
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                peiriannydd Trevor Vaughan
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support