Document hiera setup a bit more comprehensively.

I had to ask, therefore we should record it :).

Change-Id: I321aa77df0037ff52a14e2bee81b147c312d08d6
This commit is contained in:
Robert Collins 2013-08-30 09:14:28 +12:00
parent d6fd7db432
commit 0e5baad93f

View File

@ -65,7 +65,11 @@ that OpenStack Infrastructure uses are ``production`` and ``development``.
``production`` is the default is and the environment used when nothing else is ``production`` is the default is and the environment used when nothing else is
specified. Then the configuration needs to be placed into common.yaml in specified. Then the configuration needs to be placed into common.yaml in
``/etc/puppet/hieradata/production`` and ``/etc/puppet/hieradata/development``. ``/etc/puppet/hieradata/production`` and ``/etc/puppet/hieradata/development``.
The values are simple key-value pairs in yaml format. The values are simple key-value pairs in yaml format. The keys needed are the
keys referenced in your ``site.pp``, their values are typically obvious
(strings, lists of strings). ``/etc/puppet/hieradata/`` and below should be
owned by ``puppet:puppet`` and have mode ``0711``. The actual ``common.yaml``
file should have mode 0600.
Adding a node Adding a node
------------- -------------