Questions tagged [vagrant]

Vagrant is a tool to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle's VirtualBox for these virtual environments, but support for other virtualization systems is available. Most questions about Vagrant should be asked on Super User or Stack Overflow.

Vagrant is a platform independent tool written in Ruby, to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle’s VirtualBox for these virtual environments, but support for other virtualization systems is available. Lots of information and very good in-depth documentation can be found on the homepage: Vagrant - Virtualized development for the masses.


Footnote:
Please refer to Meta.SF for some background on the recommendation why questions regarding vagrant are likely to get a better reception and possibly more answers on StackOverflow than on ServerFault.

454 questions
0
votes
1 answer

Puppet-Labs Apache Module Set Operating System type

I'm new to Puppet and having some trouble with the Puppet-Labs Apache Module http://forge.puppetlabs.com/puppetlabs/apache. I'm using it in conjunction with Vagrant as a serverless setup (if that changes yours answer.) In my entry point I call the…
Grumps
  • 45
  • 1
  • 4
0
votes
2 answers

Using Puppet to manage shell commands

For example lets attempt to let Puppet install the opengeo-suite. To do something like wget -qO- http://apt.opengeo.org/gpg.key | apt-key add - echo "deb http://apt.opengeo.org/suite/v3/ubuntu lucid main" >> /etc/apt/sources.list we can use exec…
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
0
votes
1 answer

Vagrant - Unable to up instance due to "librarian" not found (even though it's installed)

Quite a strange problem I'm having, basically I type "vagrant up" and I'm immediately presented with: Gem "Librarian" was not found. Try running `vagrant gem install librarian --no-ri --no-rdoc` Of course typing the above command (with or without…
Geesu
  • 235
  • 4
  • 10
0
votes
1 answer

Is there a way to specify versions for programs using Vagrant and Hosted Chef?

I am trying to improve my development workflow but am running into some major roadblocks. Currently, we develop on local Windows machines running XAMPP then after tested on an individual machine, push the changes to our live server one by one via…
JM4
  • 1,144
  • 3
  • 18
  • 29
0
votes
1 answer

Binding bridge to specific host nic

When I use: config.vm.network :public_network It asks me which nic to bridge against. How do I set that up in the Vagrantfile so I don't have to choose on vagrant up
Botto
  • 231
  • 1
  • 10
0
votes
2 answers

Storing extra data in .json role/environment files for external (i.e. non-Chef) applications

I’m thinking about converting my roles to JSON syntax and storing some extra data in there for an external, non-chef application (specifically Vagrant). My idea is that if I stick to a convention in which each machine only gets a single role, I can…
Mike Conigliaro
  • 3,195
  • 2
  • 25
  • 24
0
votes
1 answer

Vagrantfile location path - where is it defined and how to change it? (Windows)

I have a Windows machine that I am using to host Virtual Box VMs used with Vagrant. I'd like to keep Vagrant setup files including Vagrant all under a separate folder so that it is easy to know where to find everything. Where is the location path…
therobyouknow
  • 471
  • 4
  • 8
  • 18
0
votes
1 answer

chef specify openjdk package on ubuntu

I'm creating a Vagrantfile that uses chef solo to install OpenJDK on Ubuntu 12.04. Is there a way to specify which specific package of OpenJDK is installed? This way I can be sure I'm consistent across multiple installs.
Jeff Storey
  • 448
  • 1
  • 7
  • 19
0
votes
1 answer

Updating a staging server (from a CI server) in a Vagrant box with Chef

I'm using Vagrant + Chef (chef_client provisioner) to create & provision a staging environment for my server. And I have a Jenkins job set up that is run every time I push to my 'develop' branch. In the Jenkins job, I would like to update & rebuild…
Tomas Brambora
  • 153
  • 1
  • 1
  • 6
0
votes
1 answer

I can't vagrant up because of SSH error while mounting shared folder

This is the error code I'm receiving: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-1…
la_f0ka
  • 111
  • 3
0
votes
1 answer

Is it possible to run PHP files that are outside of Virtualbox instance?

I use Vagrant and Puppet to recreate my live VPS and I'd like to test my PHP files locally against that. I have osx so during development I use the apache server there, but I'd like to use the same php files on the virtualbox rather than copy them…
ed209
  • 187
  • 3
  • 8
0
votes
1 answer

Convert Chef recipe from Centos to Ubuntu

I'm trying to adapt a chef recipe developed for Centos to Ubuntu, and thinking that there must be a better way. Methodology (I'm using Vagrant): vagrant reload Look through log to find the package that broke Example: [Wed, 04 Jul 2012 06:24:34…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
0
votes
1 answer

PostgreSQL 9.1 on Ubuntu Lucid fails to start - how to debug?

I'm using Vagrant with Chef Solo to setup a Lucid 64 box. I'm using a Chef recipe to install PostgreSQL 9.1 from Martin Pitt's backports. The install goes ok until the point where the database is started with /etc/init.d/postgresql start There's a…
Tom Fakes
  • 109
  • 2
0
votes
2 answers

Running scripts before Chef-solo starts?

I'm using Vagrant with Chef-solo to create a dev environment VM. Problem is, the Debian Chef package depends on a certain version of RubyGems to run, but I want the VM to have a much newer installed-from-source RubyGems version. Is there a way in…
Suan
  • 163
  • 1
  • 5
0
votes
0 answers

How can I fix a vagrant machine that is corrupting after a certain amount of time?

I am new to vagrant virtual machines. I set up a vagrant machine with 2 nodes for Kubernetes. 1 master and 1 node. Everything is being ok but after a certain amount of time the cluster crashes and when I try to access to vagrant master machine is…