I have configured 3 centos servers for chefworkstation, chefserver and chefclient. Now I want to install nginx using the cookbook. For that I have below script.
package 'nginx' do action :install end
This did not work because there were not enabled epel-release. Is there a way to enable epel repository before running above script?
Answer
Of course you can, but other people have done it before you so you can use their code.
From a simple google search I found the following official cookbook in Chef Supermarket:
https://supermarket.chef.io/cookbooks/yum-epel#readme
Attribution
Source : Link , Question Author : Janith , Answer Author : Community