John

You are correct. I faced the same problems once the Hiera was uncommented. 
While fixing them I had to address following open issues:

Pre-requisitions:
puppet.conf:
hiera_config = /biz/puppet/hiera/hiera.yaml

hiera.yaml:
---
:backends:
  - json
:json:
  :datadir: /biz/puppet/hieradata/%{::environment} 
:hierarchy:
  - node/%{::fqdn}
  - common
:logger:
  - puppet

List of issues I have encountered:

   1. common.json was missing from /biz/puppet/hieradata/%{::environment}/
   For illustration purposes, please find the file below:
   {
      "ntp::restrict" : true,
      "ntp::autoupdate" : true,
      "ntp::enable" : true,
      "ntp::servers" : [
          "0.centos.pool.ntp.org iburst",
          "1.centos.pool.ntp.org iburst",
          "2.centos.pool.ntp.org iburst"
         ]
   }
   2. HOST_NAME.DOMAIN_NAME.json was missing from the 
   /biz/puppet/hieradata/%{::environment}/node
   For illustration purposes, please find the file below:
   {
     "apache::vhost::priority": "10",
     "apache::vhost::vhost_name": "lalalala.sampup.com",
     "apache::vhost::port": "80",
     "apache::vhost::docroot": "/var/www"
   }
   3. My json files contained invalid characters.
   Make sure to use something like http://jsonformatter.curiousconcept.com/ 
   to check JSON validity

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to