I have a question regarding the installation of software in a chef cookbook. For the questions sake, please assume that there is no chef cookbook providing this functionality.
Say I want to install nginx from source. I see some sources online archiving this by using a chef recipe. However some sources use chef resources and the action :install
, where they basically define a chef recipe.
Where is the difference in these approaches. In both cases I could stop the nginx service by either doing so via bash in a recipe or the nginx_ressource :stop
functionality (which would wrap a bash command).