Open ttr opened 8 years ago
You'll have to use the underlying resources manually
docker_installation_package 'default' do
blah blh
end
docker_service_manager_sysvinit_debian 'default' do
blah blah
end
PS: You should work on getting a Devuan platform def into Ohai
ah. Docs menrtioned "docker_service_manager_sysvinit" and that did not work, docker_service_manager_sysvinit_debian with some polishing did the trick.
Yes - there is on my list to see what is missing in ohai and others but honestly, not enough time recently.
Thanks.
actually there is still small issue.
in /etc/default/docker DOCKER variable is getting set to empty string
DOCKER=""
while DOCKER_OPTS are generated correctly
Approached this differently - did wrapper recipe for libraries/docker_service_manager_sysvinit_debian.rb and changed versions for debian, but yes, this needs to be fixed in ohai.
Thx.
We can actually fix this without even adding the platform specifically into Ohai. We just need to switch the provides logic in the resources from specifying platforms to specifying init systems. I'm in the process of doing this with mysql and tomcat cookbooks. It simplifies the code and makes it work on more obscure platforms.
Cookbook version
docker (2.9.7)
Chef-client version
Chef Client, version 12.15.19
Platform Details
Devuan 1.0 (Debain jessie fork)
Scenario:
Install / configure docker service using sysvint
Steps to Reproduce:
On Devuan there is no systemd. Trying to configure service using automethod will default to systemd (as platform family is debian, version above 8.0) For this purpose I have node['init_package'] override to init (this is defined in chef-client cookbook, used quite common) AND also defined sysvinit as service_manager when defining docker definition.
Expected Result:
Docker is configured by desired init system
Actual Result: