docs: add Puppet Hiera docs [GH-2317]

This commit is contained in:
Matthew Haughton 2013-10-09 22:51:12 -04:00
parent c83ea416ff
commit 6bd0bf64e9
1 changed files with 21 additions and 0 deletions

View File

@ -98,6 +98,27 @@ end
Now, the `$vagrant` variable in your Puppet manifests will equal "1". 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 ## Additional Options
Puppet supports a lot of command-line flags. Basically any setting can Puppet supports a lot of command-line flags. Basically any setting can