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

Non-existent services throw an error when attempting to disable them

    Details

    • Template:
    • Team:
      Platform OS
    • QA Risk Assessment:
      Needs Assessment

      Description

      When attempting to disable a service that doesn't exist on a machine, Puppet throws an error:

      Error: /Stage[main]/module::Disable_cups/Service[cups]: Could not evaluate: Could not find init script or upstart conf file for 'cups'
      

      service {'cups':
        enable => false,
      }
      

      It seems to me that there should be a way to suppress this error, as there are cases in which disabled is the goal, but completely missing is also fine. This to me would be more in-line with the Package module behavior, where you can say ensure => absent and it won't throw an error if the package already didn't exist.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                Sector95 Justin Wiley
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: