robinandeer / cookiecutter-pyvanguard

Bleeding edge Cookiecutter template for Python development
https://github.com/audreyr/cookiecutter
52 stars 14 forks source link

Vagrant / ansible use notes? #15

Open nehalecky opened 8 years ago

nehalecky commented 8 years ago

Hi @robinandeer, thanks for the nice cookiecutter template!

From the repo README:

Vagrant to define and share development environments, provisioned by Ansible.

this is a wonderful concept, and ideally would be included as part of any collaborative Python-based project. This alone was ultimately the reason I started to test out this template. After installing, I've been greping around, trying to find where this exists, but I don't find any references to Vagrant or ansible.

Any pointers? Thanks again, much appreciated.

robinandeer commented 8 years ago

Hi, sorry for the late response

I might have removed it actually now that I think about it :/

With conda I don't find Vagrant necessary for most simple Python projects. I'll investigate if I can add something simple :+1:

nehalecky commented 8 years ago

hi @robinandeer, thanks for the reply, and this sound good. I love conda, and indeed it works great for simple projects. I use it exclusively as a package management tool for python applications.

As you know, the benefit that conda provides comes after the environment you're working in has conda and supported dependencies installed. Getting to that point is a different matter, and when starting from scratch with a fresh machine image (totally unprovisioned environment), it's awesome to be able to automate that, and use that automation everywhere to provision (e.g., local dev, testing, stage, production). :)

Also, there is likely a need to automate other steps that depend on functionality outside of the scope of conda, such as, launching external processes and communication with this machine at the OS level.

From my perspective, Ansible does this, and does it well, and if one already had functionality for targeting a Vagrant managed VM to provision via Ansible, extending to any machine image wouldn't be too big of a step, hence the benefit of including such a template for use in pyvangard!

Thanks for the useful template, appreciated!

nehalecky commented 8 years ago

FWIW, my simple attempt for bootstrapping conda, via Miniconda installer, in a bash script.

Also, saw your ansible-miniconda role, kudos! If you're already using ansible, this is ideal!