I've installed the openresty cookbook, but now I need to install my config files. What is the best way to add my nginx.conf and nginx.lua files using Chef?
I've installed the openresty cookbook, but now I need to install my config files. What is the best way to add my nginx.conf and nginx.lua files using Chef?
You'll want to write your vhost files using a template resource generally:
I'm unfamiliar with how openresty does lua plugin configs but I would guess it is similar. Make your own cookbook for
mysite
that depends on theopenresty
cookbook and then put your templates in that that cookbook. Don't forget to add your new cookbook to the run list too.