Jaymon / chef-cookbooks

Various Chef cookbooks
MIT License
2 stars 0 forks source link

Changed Nginx server names leaves config files on disk #14

Open Jaymon opened 4 years ago

Jaymon commented 4 years ago

When Chef runs the nginx cookbook it creates configurations based on the 'server' variable in the chef/environments/*.rb files.

If that server name changes, the file related to the previous domain is not deleted and causes nginx to fail on startup.

Suggested solution is to have chef clear out those files before creating the necessary ones.


From Nov 2017 issue in private repo by @sqpierce