Questions tagged [vagrant-provision]

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.

210 questions
0
votes
1 answer

vagrant provisioning fails mentioning object not found

When I am executing vagrant up or vagrant provision, it fails with the below error. Any suggestion to fix this is welcome. Where is the vagrant-7343223c created in #
0
votes
0 answers

Is it a good idea to put the webapp provisioning script logic in Vagrant Provision?

I have started working with Vagrant and what puzzles me, is the provisioning. I have added all dependencies like apache/php/nodejs/mysql/etc. to shell provision script and now the question is, what should I do with apache conf? Should I do that…
naneri
  • 3,771
  • 2
  • 29
  • 53
0
votes
1 answer

A way to use puppet module (postgres example)

I'm using vagrant to build a virtual environment. I have some question about provisioning with puppet. I understood that I can create modules on my own or to use existing modules (for example puppet forge ones). To use existing modules i follow this…
TrinitasXVII
  • 61
  • 1
  • 6
0
votes
0 answers

How can I install PHP 5.5.9 with Ubuntu 12.04 on vagrant?

There isn't really much more to this than the title suggests. My Vagrantfile is as such: VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "precise64" config.vm.box_url =…
useyourillusiontoo
  • 1,287
  • 1
  • 10
  • 24
0
votes
1 answer

vagrant provision: read line from keyboard/stdin

And so, I have a Vagrantfile with code: VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ... config.vm.provision "shell", inline: 'echo "Read line:" && read t && echo "$t"' ... end and when I execute vagrant…
Alexey Egorov
  • 2,221
  • 2
  • 18
  • 21
0
votes
1 answer

Invalid vagrant options

I use vagrant. I want to modify the provisioning behaviour when I restore a vagrant snapshot. According to this web page, I should be able to use the option --[no-]provision When I try to run this option though, my vagrant complains that I provided…
gnomed
  • 5,483
  • 2
  • 26
  • 28
0
votes
3 answers

Make PHP on a Puphpet/Vagrant box use specific sub version e.g. 7.0.4 vs 7.0.5

Using puphpet a typical config.yaml php section might look like this: php: install: '1' settings: version: '70' modules: php: - ioncube-loader I have lots of other PHP modules installed but its ioncube I'm having issues with. Up…
mike-source
  • 1,004
  • 3
  • 17
  • 32
0
votes
1 answer

Vagrant change default webroot from /var/www to /var/www/app/web-suite/ shell script

I'm serving an index from /var/www/app/web-suite/, rather than /var/www/ however I can't work out how to make it default to this location when I attempt to visit the box (i.e: 192.168.33.10), my current provision script is as follows: echo "running…
Jack hardcastle
  • 2,748
  • 4
  • 22
  • 40
0
votes
1 answer

Vagrant installing Java6SDK from Oracle

Just recently downloaded Oracle JavaSDK 6 (6u45). Would want to know how to do a shell provision to install the .bin file provided by Oracle. I know there are better alternatives (online repository) but those consumes times and I'm limited to use…
David B
  • 3,269
  • 12
  • 48
  • 80
0
votes
1 answer

Multi-machine Vagrant project not provisioning as per docs

I’ve trying to set up a multi-machine Vagrant project. According to the docs (https://www.vagrantup.com/docs/multi-machine/), provisioning is “outside in”, meaning any top-level provisioning scripts are executed before provisioning scripts in…
Martin Bean
  • 38,379
  • 25
  • 128
  • 201
0
votes
2 answers

Vagrant Shell provisioning not installing

I'm using hashicorp/precise64. (I got the same error for ubuntu/trusty64 and a lot other boxes as well.) Tried to used the following code for provisioning, but got error. config.vm.provision "shell", inline: <<-SHELL sudo apt-get update …
fuiiii
  • 1,359
  • 3
  • 17
  • 33
0
votes
2 answers

Vagrant provision shell, auto install Linuxbrew with command

I'm using this vagrantfile: VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" ...bla bla bla bla bla... config.vm.provision "shell", path:…
user4412054
0
votes
1 answer

How to pass host environment variable to provisioning script

I have the following line in my Vagrantfile: config.vm.provision :shell, path: "provisioning/myscript.sh" I would like to toggle running that script based on an environment variable being set in the host (which may not be present). If the value is…
edwardmlyte
  • 15,937
  • 23
  • 58
  • 83
0
votes
1 answer

How to get vagrant to clone a Stash repo?

I am trying to get vagrant to clone a Stash repo at the end of the provision phase of a vagrant up During a vagrant up I currently receive the following error: default: Running: inline script ==> default: Cloning into 'awesome_repo'... ==>…
adbarads
  • 1,253
  • 2
  • 20
  • 43
0
votes
1 answer

Vagrant provisioning scripts

I'm pretty new to Vagrant and I've found out that the provision *.sh scripts (linked in my Vagrant file) needs to be updated. What is the best practice? Should I remove the box and re-create it? or rather "vagrant halt" and execute "vagrant…
user2824073
  • 2,407
  • 10
  • 39
  • 73
1 2 3
13
14