[Pkg-puppet-devel] Bug#573551: Debian's service provider should use update-rc.d enable/disable

Nicolas Bourbaki ncl.bourbaki at gmail.com
Tue May 31 09:26:15 UTC 2011


Hi,

The issue occurs on Ubuntu Natty 11.04. Puppet version is :
 puppet 2.6.4-2ubuntu2

Regarding steps to reproduce, for instance manage ssh service:
purge it on the client (to be sure):
  update-rc.d -f ssh remove
then restart puppet (I have a class that manage the ssh service)
1st pass:
notice: /Stage[main]/Intranet::Services/Service[ssh]/enable: enable
changed 'false' to 'true'
-> it does not create any symlinks in /etc/rcX.d/SXXssh

Nth pass:
notice: /Stage[main]/Intranet::Services/Service[ssh]/enable: enable
changed 'false' to 'true'
-> still no symlinks and the message is repeated

If I modify provider/service/debian.rb and switch the update-rc.d
argument back to "defaults"
1st pass:
notice: /Stage[main]/Intranet::Services/Service[ssh]/enable: enable
changed 'false' to 'true'
-> Symlinks are created and the service is launched at the machine startup.

Regards,

Nicolas.

2011/5/27 Nicolas Bourbaki <ncl.bourbaki at gmail.com>:
> Hi there,
>
> We are using puppet to configure Ubuntu clients and with the upstream
> fix services are no longer managed (symlinks are not created)
>
> I can confirm that using update-rc.d with 'defaults' instead of
> 'enable' by changing it in 'provider/service/debian.rb' fix the issue
> and services are managed (symlinks created).
>
> This is a critical bug for us as we can no longer ensure that services
> are run at the client startup.
>
> Regards,
>
> Nicolas.
>





More information about the Pkg-puppet-devel mailing list