Skip to content

Commit

Permalink
Add check for start nginx service to be executed on app/solo instnaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Rupika committed Jul 29, 2021
1 parent 5f61035 commit b83a210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbooks/nginx/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -414,4 +414,5 @@
provider Chef::Provider::Service::Systemd
supports :status => true, :restart => true, :reload => true
action [:start, :enable]
only_if { ['solo','app', 'app_master'].include?(node['dna']['instance_role']) }
end

0 comments on commit b83a210

Please sign in to comment.