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

systemd provider should reject manual

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: PUP 4.0.0
    • Fix Version/s: None
    • Component/s: Language
    • Labels:
    • Template:

      Description

      Puppet documents the systemd service as supporting for values for the enable attribute to true, false, manual, or mask. While validating PUP-1253, I discovered that attempting to set it to manual fails:

      # puppet resource service tuned.service enable=manual
      Error: Could not set 'manual' on enable: undefined method `manual_start' for #<Puppet::Type::Service::ProviderSystemd:0x000000030c2788>
      Error: Could not set 'manual' on enable: undefined method `manual_start' for #<Puppet::Type::Service::ProviderSystemd:0x000000030c2788>
      Wrapped exception:
      undefined method `manual_start' for #<Puppet::Type::Service::ProviderSystemd:0x000000030c2788>
      Error: /Service[tuned.service]/enable: change from false to manual failed: Could not set 'manual' on enable: undefined method `manual_start' for #<Puppet::Type::Service::ProviderSystemd:0x000000030c2788>
      service { 'tuned.service':
        ensure => 'running',
        enable => 'false',
      }
      

      Are the docs incorrect or is the provider incomplete?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kurt.wall Kurt Wall
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support