Skip to content

Commit

Permalink
Merge pull request #213 from engineyard/fbz-9008-node-check-on-service
Browse files Browse the repository at this point in the history
[FBZ-9008] Add check for start nginx service to be executed on app/solo instances
  • Loading branch information
mushyy authored Sep 16, 2021
2 parents dc26a4a + b83a210 commit e7cb0ce
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 e7cb0ce

Please sign in to comment.