Provisioners in Vagrant allow you to automatically install software, alter configurations, and more on the machine as part of the vagrant up process. Vagrant gives you multiple options for provisioning the machine, from simple shell scripts to more complex, industry-standard configuration management systems.
Questions tagged [vagrant-provision]
210 questions
0
votes
1 answer
Vagrant Shell Provision LAMP Stack on Ubuntu 15.04
I'm trying to create a LAMP stack on Ubuntu 15.04 using the default packages providing PHP 5.6.x, Apache 2.4, MySQL 5.x for a CakePHP 2.x project, and I'm having issues configuring Apache it doesn't seem to start up properly, though it is installed.…

mtpultz
- 17,267
- 22
- 122
- 201
0
votes
1 answer
In vagrant, there is two virtual machine with the same name
I use vagrant, but i don't know why there is two virtual machine with the same name, just differ in id(number after name) i.e. in case of this pic, 1445839840601_4522
i guess it may the result of running 'vagrant provision'
how can i boot with…

Henry
- 1,257
- 1
- 9
- 13
0
votes
2 answers
Provisioning KVM VMs with chef
Ohai chefs.
I'd like to provision VM's on KVM based hypervisor.
However, chef provisioning does not have a driver for KVM.
The closest one is Vargrant + libvirt. But I'm not sure how good of an idea is it for production.
AFAIK Vagrant is used for…
0
votes
2 answers
Using gitfs_remotes and Salt Stack formulas to provision Vagrant VM
I'm trying to provision vagrant VM using salt with existing salt formulas. I've followed this presentation to get access to gitfs_remotes: https://github.com/borgstrom/salt-vagrant-saltconf2014/blob/master/presentation.md.
salt/minion
master:…

Dave
- 515
- 5
- 18
0
votes
1 answer
How to reuse class in Puppet
I have this puppet class
class project::className(
$program_name = '',
$command = ''
) {
....
}
And I'm using it like this
class { 'project::classname':
program_name => 'programe_name',
command => 'ls /dev/'
}
This works fine, but when…

kdlcruz
- 1,368
- 13
- 20
0
votes
1 answer
PuPHPet with Amazon - Ubuntu 14.04 and PHP 5.6
The tool https://puphpet.com/ gives you a GUI for Vagrant config files. Besides that it can be used to spin up Servers on AWS using Vagrant. It's pretty nice, since you can write a config file and have Vagrant and Puppet handle the rest.
The only…

wawa
- 4,816
- 3
- 29
- 52
0
votes
3 answers
Save changes Vagrantfile on file.box
After I created my 'Vagrantfile' from my file 'test.box', I'm going to edit the file 'Vagrantfile' inserting for example:
config.vm.provision: shell, path: './test.sh'
Done this, how do I save the changes to the file test.box?

tranfix
- 3
- 2
0
votes
2 answers
Is Vagrant Provision suppose to wipe out all your data
I just ran vagrant provision in a futile attempt at getting my customized synced_folders directive to work and now my whole guest box is wiped out.
Is this normal? I don't see any references to Vagrant docs about this behavior.
As per the…

earth2jason
- 715
- 1
- 9
- 20
0
votes
1 answer
Using executables/programs installed in vagrant vm from the host
Is it possible to use a software/program (e.g. java/ maven) installed in vagrant vm from the host machine? Like placing the executable in the synced folder?

Arif Akram Khan
- 119
- 1
- 7
0
votes
1 answer
Pulling git repo to a vagrant box using ansible
Hi all I am trying to pull a repo from my github to a vagrant box via ansible, refering this github issue. I have registered an ssh from my host with the github. And below is the part in the playbook where I'm trying to pull;
- name: install git
…

Afzal S.H.
- 1,084
- 2
- 14
- 27
-1
votes
1 answer
is a loop in packer config.json file possible?
is it possible so do loops in packer ?
I have a Vagrantfile with a loop and want to convert it to packer. I already searched on google and stack overflow but didn't find the right solution.
I have problems converting this into a json format:…
-1
votes
1 answer
vagrant up not working ubuntu
When I run vagrant up command on digitalocean server(ubuntu) it shows me the below error. This command is working fine at locally but not working at server.
$ vagrant up
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for…

somil
- 1
- 1
-1
votes
1 answer
Vagrant up - execute sh file fails
I have a simple vagrant file which calls sh file in the provision phase:
Inside script.sh I have wget command that fails with error 403 (Forbidden).
Same error I get when running the script manually from the VM. But If I create new sh file with the…

Amir
- 129
- 8
-2
votes
1 answer
Vagrant with homestead and Linux boxes
Why there is a yaml file generated with the homestead box while there isn't one generated in a simple linux box like the precise64 box.

user30102967
- 221
- 2
- 13
-3
votes
1 answer
Unable to run locally a pre-existing WP Trellis project on a new laptop
I am a pretty much a newbie using Trellis and I am stuck with an issue which might be silly but it’s blocking me; I have asked on the Trellis Roots' forum but I had no answer yet so I though I could ask here. I have my project running on an Intel…

yano1978
- 7
- 1
- 5