Ask Your Question
0

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
0

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

DarylW gravatar image

Have you looked at the puppet service resource parameter enable?

https://puppet.com/docs/puppet/5.4/ty...

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.

https://ask.puppet.com/question/2598/...

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

Stats

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

Seen: 73 times

Last updated: Oct 01