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

Installer switch "service-enable true" reports wrong actions in certain conditions

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2020-05-13
    • Method Found:
      Needs Assessment
    • Zendesk Ticket IDs:
      38781
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix `puppet resource` wrongly reporting the `enabled` state of a systemd service when the `ensure` parameter is also specified.
    • QA Risk Assessment:
      Needs Assessment

      Description

      When installing an agent on Ubuntu (any version) using switches to both enable and stop the puppet service, via

      curl -k https://<fqdnhere>:8140/packages/current/install.bash | bash -s -- --puppet-service-ensure stopped --puppet-service-enable true
      

      The output shows this:

      Setting the puppet service to ensure=stopped and enable=true
      service { 'puppet':
        ensure => 'stopped',
        enable => 'false',
        provider => 'systemd',
      }

      The expected output, and the output on EL6/7/8, is this:

      Setting the puppet service to ensure=stopped and enable=true
      service { 'puppet':
        ensure => 'stopped',
        enable => 'true',
        provider => 'systemd',
      }

      This issue is entirely cosmetic, the service does end up enabled. The issue is not present when the switch "--puppet-service-enable true" is used standalone.

      * Please see Zendesk Support tab for further comments and attachments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabriel.nagy Gabriel Nagy
              Reporter:
              miranda.streeter Miranda Streeter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support