[Pkg-puppet-devel] Bug#775795: Patch to use /usr/sbin/service in Debian service provider

Stig Sandbeck Mathisen ssm at fnord.no
Wed Feb 4 22:49:57 UTC 2015


Hello,

Thanks for the patch.  It looks like it has the correct solution, using
the Debian abstraction layer over the alternative init systems.

However, I've found a problem with it using the "puppet resource"
command. Could you see if you find what causes it?

With puppet 3.7.22-1:

,----
| root at dagon:~# puppet resource service apache2
| service { 'apache2':
|   ensure => 'stopped',
|   enable => 'true',
| }
`----

With your patch:

,----
| root at dagon:~# puppet resource service apache2
| Error: Could not run: undefined local variable or method `service' for #<Puppet::Type::Service::ProviderDebian:0x000000029b9d88>
`----

-- 
Stig Sandbeck Mathisen



More information about the Pkg-puppet-devel mailing list