How to enable systemd instantiated service with puppet?
Posted
by
Richard Pena
on Server Fault
See other posts from Server Fault
or by Richard Pena
Published on 2012-06-04T16:53:08Z
Indexed on
2014/08/24
10:22 UTC
Read the original article
Hit count: 224
puppet
I've got the following puppet service:
service { "[email protected]":
provider => systemd, ensure => running, enable => true,
}
When I try to apply this configuration on my client, it throws the following error:
err: /Stage[main]//Node[puppetclient]/Service[[email protected]]/enable: change from false to true failed: Could not enable [email protected]:
The service is running fine and I can make sure it's started on system boot by adding a symlink to getty.target.wants:
ln -s /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
Of source, I could go ahead and remove "enable => true" from the service definition and include a the symlink manually in the puppet configuration, but shouldn't puppet take care of this? Am I doing something terribly wrong?
© Server Fault or respective owner