Finding a project skeleton for Chef + Django on Linux

Is there a pre-existing skeleton of the best practices project for Chef + Django web applications on Linux (preferably Ubuntu)?

For the production of Django systems, our preferred setup is Supervisor, Nginx, Ubuntu, and Uwsgi. In addition, we use Chef for configuration management and Vagrant + Chef for managing the development environment.

While this system is great when they are all up and running, they can be very time consuming to set up properly.

My ideal solution is the off-the-shelf Chef Github repository, which was the skeleton for deploying Django with best practice. (He will be ready to use chef-solo.rb to deploy on some ubuntu cloud node, and Vagrantfile ready to use to create the Vagrant dev machine.) Basically all you have to do is add a cookbook for the chef to deploy your application code and configure several settings.

Is there anything like this perfect solution?

+4
source share
1 answer

Here's a typical chef-based configuration solution:

  • one git repo saves chef-repo. you can use knife solo init <repo-name> to create it. Or just clone that from git repo of opscode.com

  • one git repo for cooking. you can use the berkshelf cookbook <your-cookbook-name> to create a complete set of cookbook contents, including cooking, dough, tramp and berka. Install berkshelf first via gem install berkshelf

For any other cookbooks that are from the cookbook or git repo community, you can use berkshelf to download and manage them as local cookbooks.

+1
source

Source: https://habr.com/ru/post/1479799/


All Articles