D
D
Daniil Ryazanov2015-01-11 02:02:09
linux
Daniil Ryazanov, 2015-01-11 02:02:09

How to set up a bunch of Vagrant + Chef (Huge question)?

I read a lot of HowTo, but I still don’t understand how to put it on win 7 chef solo? In general, you need to put it there, how best to organize it?
I need:

  1. expand the virtual machine to 512 and 1 percent on ubuntu 14.04 LTS (I already did this)
  2. synchronize a folder from Windows with a folder in a virtual machine (in this folder, a project on node js), did this: config.vm.synced_folder "../xxx", "/var/www", :mount_options => ["dmode=777" , "fmode=666"]
  3. deploy nginx to static, send the rest to node.js port 3000 (not sure if I'm right here)
  4. install node js, npm and all dependencies for the project
  5. put phython
  6. run project build + tests (gulp)

PS
2 point, as I understand it, is done easily, but I'm afraid that there will be problems with win 7 -> ubuntu, who faced it?
Knowledgeable people will be glad if someone explains about: Gemfile and a bunch of bundle install, berks install commands.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-01-11
@ProjectKein

1) Read the Vagrant documentation. It all comes down to the Vagrant init command and further on the documentation
2) It's better to use SMB if it's on Windows. If the team has people on Mac / Linux, you can play around with NFS, but there are problems on Windows.
3) Set up the recipe for the chief, in general, this does not apply to either the chief or the vagrant.
4) Google how to do it with a chief when provisioning
5) python is in ubunt out of the box. By default, vagrant will push you exactly ubuntu. If you need to install another version - again, we figure out how to do it with the chief.
6) vagrant ssh "cd /vagrant && gulp build" or something like that.
In short ... either ask someone from the team or figure it out yourself. Because questions like "what is a Gemfile" are just ridiculous...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question