Let's get to the exciting part! We will now use Puppet apply and Puppet agent to provision a Vagrant machine. We'll look at both options and install the nginx web server. We'll configure it using the Vagrantfile as a base but also add in Puppet-specific configuration such as manifests.
Provisioning with Puppet
Provisioning with Puppet apply
The Puppet apply provision option in Vagrant allows you to get up and running quickly with Puppet. You do not require a separate Puppet master server when using this option. Let's get started:
- Create a new directory for this project and move into it.
- Create a directory and call it manifests.
- In the manifests folder, create a manifest file called nginx.pp. Inside this...