| 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. |