From 6bd0bf64e9ab7933b00755231a3ae6b3bee61838 Mon Sep 17 00:00:00 2001 From: Matthew Haughton Date: Wed, 9 Oct 2013 22:51:12 -0400 Subject: [PATCH] docs: add Puppet Hiera docs [GH-2317] --- .../v2/provisioning/puppet_apply.html.md | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/website/docs/source/v2/provisioning/puppet_apply.html.md b/website/docs/source/v2/provisioning/puppet_apply.html.md index d0f380019..61b0df844 100644 --- a/website/docs/source/v2/provisioning/puppet_apply.html.md +++ b/website/docs/source/v2/provisioning/puppet_apply.html.md @@ -98,6 +98,27 @@ end Now, the `$vagrant` variable in your Puppet manifests will equal "1". +## Configuring Hiera + +[Hiera](http://docs.puppetlabs.com/hiera/1/) configuration is also supported. +`hiera_config_path` specifies the path to the Hiera configuration file stored on +the host. If the `:datadir` setting in the Hiera configuration file is a +relative path, `working_directory` should be used to specify the directory in +the guest that path is relative to. + +```ruby +Vagrant.configure("2") do |config| + config.vm.provision "puppet" do |puppet| + puppet.hiera_config_path = "hiera.yaml" + puppet.working_directory = "/tmp/vagrant-puppet" + end +end +``` + +`hiera_config_path` can be relative or absolute. If it is relative, it is +relative to the project root. `working_directory` is an absolute path within the +guest. + ## Additional Options Puppet supports a lot of command-line flags. Basically any setting can