How to separately restart service of docker while using docker module?

asked 2015-01-30 03:54:06 -0600

abhishekb gravatar image

I want to restart service of docker after executing $update-ca-trust extract Whenever i try to manually restart docker service after installing docker using docker module of puppet forge, it gives the following error.

Error: Duplicate declaration: Service[docker] is already declared in file /etc/puppetlabs/puppet/modules/docker/manifests/service.pp:127; cannot redeclare at /etc/puppetlabs/puppet/manifests/docker_module.pp:35

Note: I experienced the same problem while using mysql module of puppet forge and i was not able to restart mysql service.

Question : How can we restart services if the forge modules are used for installation?

edit retag flag offensive close merge delete