hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.27k stars 4.43k forks source link

The 'foo' provisioner could not be found #4925

Closed awick closed 9 years ago

awick commented 9 years ago

Vagrant 1.6.5

Based on https://docs.vagrantup.com/v2/provisioning/basic_usage.html tried

Vagrant.configure("2") do |config|
  config.vm.provision "foo", type: "shell",
    inline: "echo ORIGINAL!"

  config.vm.box = "chef/centos-7.0"
  config.vm.define "web" do |web|
    web.vm.provision "shell",
      inline: "echo foo"
    web.vm.provision "foo", type: "shell",
      inline: "echo bar"
  end

end

have the error

vagrant up web
vm:
* The 'foo' provisioner could not be found.
* The 'foo' provisioner could not be found.
mitchellh commented 9 years ago

The syntax you're using is for Vagrant 1.7. Please use Vagrant 1.7.

Thanks!

awick commented 9 years ago

Thanks! Just a suggestion, might be useful to put ("first available in 1.7") type notes in the docs