- service name do
- action [:enable, :start]
- supports :restart => true, :status => true
- subscribes :restart, "template[/etc/init.d/#{name}]"
+ if node[:planet][:replication] == "enabled"
+ service name do
+ action [:enable, :start]
+ supports :restart => true, :status => true
+ subscribes :restart, "template[/etc/init.d/#{name}]"
+ end
+ else
+ service name do
+ action [:disable, :stop]
+ supports :restart => true, :status => true
+ end