In this section, we will learn more about the two Puppet provisioning options available in Vagrant—puppet apply
and puppet agent
. In the following section, we will use both of these options to provision our own Vagrant machine.
Using the Puppet apply option to provision a Vagrant machine allows you to use Puppet without the need for a Puppet master. It works by calling the puppet apply
command on the guest machine. This can be useful for testing Puppet configurations if you do not have a Puppet master or you just need to get up and running quickly.
There are 14 different options available when using Puppet apply in Vagrant. These options are to be applied in your Vagrantfile and can help give you more control over the Puppet provisioner:
binary_path
:
Type: string
Description: This is a path on the guest to the Puppet's bin directory.
facter
:
Type: hash
Description: This is a hash of available facter variables (also know as facts).
hiera_config_path...