| Puppet Version: 6.15.0 Puppet Server Version: 6.15.0 OS Name/Version: CentOS 8 puppet apply the following snippet
service{'non-existing.service': |
ensure => mask, |
}
|
results in.
Error: Could not disable foobar.service: |
Error: /Stage[main]/Main/Service[non-existing.service]/enable: change from 'false' to 'mask' failed: Could not disable foobar.service:
|
Desired Behavior: A service can be masked irrespective of if the unit exists.
systemctl mask non-existing.service |
Unit non-existing.service does not exist, proceeding anyway. |
Created symlink /etc/systemd/system/non-existing.service → /dev/null.
|
and this is desirable since you want to mask things to stop a vendor setting winning later. puppet should proceed with the above mask for a non-existant service. Actual Behavior: The non-existant unit is not masked. |