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
2
votes
4 answers

ln: failed to create symbolic link: Protocol error (in Vagrant)

I'm using Laravel Homestead (Vagrant, Ubuntu). My host computer is Windows 10 running VirtualBox. As admin (since I've already seen tons of answers that say lack of permissions is usually why people have problems with symlinks), I open Git Bash and…
Ryan
  • 22,332
  • 31
  • 176
  • 357
2
votes
0 answers

How do I separate stages of multi-machine cluster provisioning?

Let's say I have 4 Vagrant boxes. 3 are variations of the same configuration, say, Consul, and one has a completely different configuration, say a database. I need to run a provisioning step with slight variations on the three similarly configured…
Nathan Basanese
  • 8,475
  • 10
  • 37
  • 66
2
votes
2 answers

ansible: combine loop (until) with conditional (when)

I'm trying to install and configure an application server in a local vagrant vm. For the provisioning Ansible is used. The configuration can be done after the first start is finished. At this time it's listening on localhost:8000. After that I can…
audioslave
  • 125
  • 1
  • 1
  • 11
2
votes
1 answer

Ansible start-at-task from within Vagrant

Is there a method to using Ansible's start-at-task from within a Vagrantfile? I want to specify the exact task to start at for debugging purposes. I realize host vars will be missing, this is fine. Other similar questions don't seem to be asking…
Michael
  • 1,577
  • 1
  • 18
  • 33
2
votes
2 answers

Ansible bitbucket clone provisioning ssh error

In summary, When provisioning my vagrant box using Ansible, I get thrown a mysterious error when trying to clone my bitbucket private repo using ssh. The error states that the "Host key verification failed". Yet if I vagrant ssh and then run the…
GustavMahler
  • 657
  • 1
  • 6
  • 23
2
votes
2 answers

bash heredoc inside a vagrant vm provision heredoc

I like to use a bash heredoc inside the ruby heredoc from config.vm.provision, like so: config.vm.provision "shell", inline: <<-SHELL cat >> foobar <
reox
  • 5,036
  • 11
  • 53
  • 98
2
votes
1 answer

Install PyEnv in Vagrantfile

PyEnv does not have a great installer, and it requires some post-install processing to get it to work correctly (such as modifying .bashrc to add to $PATH and make two pyenv calls). I'm wondering how anyone has been able to get PyEnv installed via…
Dagrooms
  • 1,507
  • 2
  • 16
  • 42
2
votes
1 answer

Vagrant execute command on specific guest after other guests are up

I have the following Vagrantfile: Vagrant.configure(VAGRANT_API_VERSION) do |config| config.vm.provider "virtualbox" do |vb| vb.memory = 1024 vb.cpus = 2 end config.vm.define :master do |master_config| master_config.vm.box =…
Haije Ploeg
  • 162
  • 2
  • 12
2
votes
1 answer

Unable to sync home directory in Vagrant

This is the code I tried config.vm.synced_folder ENV['HOME'], "/home/vagrant/myHome", :mount_options => ["dmode=777,fmode=777"] config.vm.synced_folder "~", "/home/vagrant/myHome", :mount_options => ["dmode=777,fmode=777"]
2
votes
0 answers

Homestead / Vagrant not provisioning or serving additional sites

I'm attempting to run multiple sites in my Homestead box, wordpress.dev and responsible.dev. However, upon navigating to http://responsible.dev it displays the content from wordpress.dev. I've set up the sites in my Homestead.yaml and hosts file,…
nomaki
  • 84
  • 7
2
votes
1 answer

sed error in vagrant provision but ok in manual execute

I'm building a Vagrant project which will provision(am i use this word right?) a Minecraft server with a custom map. In the process of provision, I keep getting sed error sed: -e expression #1, char 39: unknown option to 's' but I didn't have the…
Hartman
  • 295
  • 4
  • 14
2
votes
0 answers

Vagrant up on Laravel/Homestead stuck on ssh auth method

Can anyone help me, the vagrant up stops every time at SSH auth method. I have been stuck for 4 days. Please guys help me. Vagrant Version is 1.9.2 Virtual Box Version is 5.0.16 Sam@sam-PC MINGW32 /c/www/Homestead (master) $ vagrant up …
2
votes
0 answers

Can I pass an array as a single argument from vagrantfile to powershell script?

My current setup is as follows: I have a vagrant file set up with provisioning: config.vm.provision 'test', :type => 'shell', :path => "#{rootdir}/.build/vagrant-scripts/sandbox-test.ps1", :powershell_elevated_interactive => true, :args => ["1",…
2
votes
1 answer

How to stop vagrant homestead deleting my mysql database?

I am using homestead with a fresh install of laravel. If I tinker, add some users, some other database tables etc, every time I destroy the homestead instance all my data seems to be dropped as a result. I can't seem to find an answer unless I add a…
m33bo
  • 1,334
  • 1
  • 17
  • 34
2
votes
1 answer

Vagrant MongoDB provision connection refused

I am having an issue with mongo provisioning. For some reason when I do provision the first time, it will give me an error: ==> METEOR_Dev_Box_test: ADDING MONGO INITIATE ==> METEOR_Dev_Box_test: MongoDB shell version v3.4.2 ==> METEOR_Dev_Box_test:…
Rip3rs
  • 1,284
  • 12
  • 21
1 2
3
13 14