Ask Your Question

How can I have the puppetlabs/tomcat module manage systemd services?

asked 2018-09-28 14:53:44 -0600

Rob Ogilvie gravatar image

How can I get puppetlabs/tomcat to manage a systemd service for each of the tomcat instances it is managing?

The module handles starting the services itself on a catalog run, but I haven't yet found how to get it to manage systemd services to automatically start on server reboot.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-01 08:37:54 -0600

DarylW gravatar image

Have you looked at the puppet service resource parameter enable?

enable (Property: This attribute represents concrete state on the target system.)

Whether a service should be enabled to start at boot. This property behaves quite differently depending on the platform; wherever possible, it relies on local tools to enable or disable a given service.

Valid values are true, false, manual, mask.

Requires features enableable.

Below is an example ask puppet question where 'start on boot' is enabled, but the service isn't being managed by puppet.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-09-28 14:53:44 -0600

Seen: 74 times

Last updated: Oct 01