voxpupuli / puppet-r10k

Setup and configure r10k for use with git based environments in puppet
https://forge.puppet.com/puppet/r10k
Apache License 2.0
98 stars 168 forks source link

Webhook service fails to enable on Debian Stretch #411

Open Adam-Ant opened 6 years ago

Adam-Ant commented 6 years ago

Affected Puppet, Ruby, OS and module versions/distributions

Calling the r10k::webhook class fails, as it cannot enable the service.

Running systemctl enable webhook.service manually afterward produces the following error:

webhook.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable webhook
update-rc.d: error: webhook Default-Start contains no runlevels, aborting.

It seems the /etc/init.d/webhook file is missing the init information at the start of the file, which it seem Debian/systemd requires.

The documentation for providing this information is here, and is all defined in comments, so should be easy to add without affecting any other platform.

Adam-Ant commented 6 years ago

It seems as the change for this has already happened, but is not part of 6.3.2 for some reason. Will leave this issue open for now.

dhollinger commented 6 years ago

@Adam-Ant we've released a few versions since this, are you still seeing issues?

rogermartensson commented 3 years ago

Old issue but I'm seeing the same error with Ubuntu 18.04 with module version 10.1.1.

$ sudo systemctl enable webhook
Synchronizing state of webhook.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable webhook
update-rc.d: error: webhook Default-Start contains no runlevels, aborting.