Ivan Navarrete
Ivan Navarrete

Reputation: 535

Is it possible to run a chef recipe without running the default recipe

I have two chef recipes in my nginx cookbook. One is named default.rb and another named sites.rb. When I run the sites recipe with

RUN_LIST=recipe[nginx::sites] bundle exec cap staging chef:solo

then my default recipe is run as well. How do I prevent this from happening?

Upvotes: 3

Views: 6106

Answers (1)

valodzka
valodzka

Reputation: 5805

Remove line

include_recipe "nginx"

because it includes default recipe (nginx::default)

Upvotes: 5

Related Questions