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

Unable to mask static / oneshot services

    XMLWordPrintable

Details

    • Night's Watch
    • Needs Assessment
    • Needs Assessment

    Description

      Puppet Version: 5.5.8
      Puppet Server Version: 5.5.8
      OS Name/Version: Ubuntu 18.04

      Trying to mask a static / oneshot service:

      puppet apply -d -e "service { 'motd-news': ensure => stopped, enable => mask }" 

      silently fails, and yields the following in debug output:

      Debug: Executing: '/bin/systemctl is-active motd-news'
      Debug: Executing: '/bin/systemctl is-enabled motd-news'
      Debug: Unable to enable or disable static service motd-news

      Checking manually:

      # systemctl is-active motd-news
      failed
      # systemctl is-enabled motd-news
      static

      Masking and unmasking manually works fine:

      # systemctl mask motd-news
      Created symlink /etc/systemd/system/motd-news.service → /dev/null.
      # systemctl unmask motd-news
      Removed /etc/systemd/system/motd-news.service.

       

      Desired Behavior:

      Mask and unmask should also work with static services, and never silently fail.

       

      Actual Behavior:

      Mask fails silently with static / oneshot services.

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              olifre Oliver Freyermuth
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support