Does vagrant automatically install puppet?

Eric Francis picture Eric Francis · Feb 5, 2014 · Viewed 9.9k times · Source

I have this in my Vagrantfile:

Vagrant.configure("2") do |config|
    config.vm.provision "puppet"
  end

Yet, when I run puppet --version I get :

[vagrant@vagrant-centos65 ~]$ puppet --version
-bash: puppet: command not found

Do I need to manually install puppet?

Answer

tmatilai picture tmatilai · Feb 5, 2014

No, (at the moment) Vagrant doesn't install it automatically.

So you either need to use a basebox which already has it installed (Puppet Labs provides boxes too), or you need to install it yourself. Probably the easiest way to install is to use shell provisioner before the puppet provisioner(s).