lib/itamae/plugin/recipe/supervisor/install.rb in itamae-plugin-recipe-supervisor-0.0.4 vs lib/itamae/plugin/recipe/supervisor/install.rb in itamae-plugin-recipe-supervisor-0.0.5
- old
+ new
@@ -14,32 +14,5 @@
user 'root'
owner 'root'
group 'root'
mode '755'
end
-
-case "#{node.platform_family}-#{node.platform_version}"
-when /rhel-6\.(.*?)/
- template '/etc/init.d/supervisord' do
- user 'root'
- owner 'root'
- group 'root'
- mode '755'
- end
-when /rhel-7\.(.*?)/
- pip_path = run_command('which pip').stdout
- template '/etc/systemd/system/supervisord.service' do
- user 'root'
- owner 'root'
- group 'root'
- mode '755'
- variables dir_path: File.dirname(pip_path)
- end
-
- execute 'systemctl daemon-reload' do
- user 'root'
- action :nothing
- subscribes :run, 'template[/etc/systemd/system/supervisord.service]', :immediately
- end
-else
- raise "unsupported platform #{node.platform_family}-#{node.platform_version}"
-end