Previously, I have installed nginx using chef cookbook. Then I did research about firewall rules. For allowing HTTP traffic I have below script.
firewall_rule 'http' do
port 80
protocol :tcp
position 1
command :allow
end
But I am getting error
NoMethodError: undefined method `firewall_rule' for cookbook: firewall, recipe: default :Chef::Recipe
How can I resolve this? I did some research but no success.