Reputation: 1207
I am using nodejs with ansible and vagrant
I need to create a new machine for development with such things:
on every vagrant up
I need to do:
run this script (to install all needed soft for development):
bash <(wget -qO- https://raw.githubusercontent.com/thoughtbot/laptop/master/linux)
NPM install on every submodule in my project
How I can set these stuff to do automatically in vagrant or ansible?
Upvotes: 0
Views: 79
Reputation: 4012
You have a few options:
I personally recommend 2 even though its the slowest (requires you to do all the owrk every time you destroy and up). 1 is a really good choice but I tend to keep vagrant as close to base state as possible so that no surprises pop up during deployment. And it makes it easier to share across people if you don't have to constantly re-package it and maintain that .box
Upvotes: 2