Closed Dan33l closed 5 years ago
In the class call, they are two problems.
Firstly, it is defined server_type => 'daemon',
and so the process puppet_webhook
daemonize.
But the systemd unit is with Type=simple
(not forking
), so systemd expects something that does not daemonize.
Secondly, it is defined pkg_provider => 'gem',
, but systemd unit use /opt/puppetlabs/puppet/bin/puppet_webhook
and so it is needed to use provider puppet_gem
instead of gem
.
I close the issue so.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
puppet apply hang on command
/bin/systemctl start puppet_webhook
and the process does not start.What behaviour did you expect instead
Output log
Debug output:
And hang here.
Any additional information you'd like to impart
The systemd unit is:
But the file is in
/usr/local/bin/puppet_webhook
. On Debian like systems it should beEnvironmentFile=-/etc/default/webhook