From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/vagrant/provisioning%2Fpuppet_agent.html | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 devdocs/vagrant/provisioning%2Fpuppet_agent.html (limited to 'devdocs/vagrant/provisioning%2Fpuppet_agent.html') diff --git a/devdocs/vagrant/provisioning%2Fpuppet_agent.html b/devdocs/vagrant/provisioning%2Fpuppet_agent.html new file mode 100644 index 00000000..629d5e30 --- /dev/null +++ b/devdocs/vagrant/provisioning%2Fpuppet_agent.html @@ -0,0 +1,31 @@ +

Puppet Agent Provisioner

Provisioner name: puppet_server

The Vagrant Puppet agent provisioner allows you to provision the guest using Puppet, specifically by calling puppet agent, connecting to a Puppet master, and retrieving the set of modules and manifests from there.

Warning: If you are not familiar with Puppet and Vagrant already, I recommend starting with the shell provisioner. However, if you are comfortable with Vagrant already, Vagrant is the best way to learn Puppet.

+

Options

The puppet_server provisioner takes various options. None are strictly required. They are listed below:

Specifying the Puppet Master

The quickest way to get started with the Puppet agent provisioner is to just specify the location of the Puppet master:

Vagrant.configure("2") do |config|
+  config.vm.provision "puppet_server" do |puppet|
+    puppet.puppet_server = "puppet.example.com"
+  end
+end
+
+

By default, Vagrant will look for the host named "puppet" on the local domain of the guest machine.

Configuring the Node Name

The node name that the agent registers as can be customized. Remember this is important because Puppet uses the node name as part of the process to compile the catalog the node will run.

The node name defaults to the hostname of the guest machine, but can be customized using the Vagrantfile:

Vagrant.configure("2") do |config|
+  config.vm.provision "puppet_server" do |puppet|
+    puppet.puppet_node = "node.example.com"
+  end
+end
+
+

Additional Options

Puppet supports a lot of command-line flags. Basically any setting can be overridden on the command line. To give you the most power and flexibility possible with Puppet, Vagrant allows you to specify custom command line flags to use:

Vagrant.configure("2") do |config|
+  config.vm.provision "puppet_server" do |puppet|
+    puppet.options = "--verbose --debug"
+  end
+end
+
+

+ © 2010–2018 Mitchell Hashimoto
Licensed under the MPL 2.0 License.
+ https://www.vagrantup.com/docs/provisioning/puppet_agent.html +

+
-- cgit v1.2.3