It cannot find the files. Do they exist and are they readable to the user you are running hiera/the puppet master service as?
On Monday, July 18, 2016, John Baird <john.w.ba...@gmail.com> wrote: > Attempting to use hiera to hold all of my node-specific variables. It has > been some time since I have run a puppet server, but I know it's not THAT > hard. That being said, my modules run fine, but hiera is not looking them > up correctly. It appears that any lines that contain any variables in the > hiera.yaml are ignore and are not searched. Any assistance would be > great! I'm sure it's something small, but sooooooo confused... > > > HIERA.YAML > ------------------ > --- > :backends: > - yaml > :yaml: > :datadir: "/opt/local/modules/hieradata" > :hierarchy: > - '%{calling_module}/%{::hostname}' > - '%{calling_module}/common' > - common > > > hiera -d 'dhcpd::package_name' environment=production > DEBUG: 2016-07-18 20:48:38 -0400: Hiera YAML backend starting > DEBUG: 2016-07-18 20:48:38 -0400: Looking up dhcpd::package_name in YAML > backend > DEBUG: 2016-07-18 20:48:38 -0400: Looking for data source common > DEBUG: 2016-07-18 20:48:38 -0400: Cannot find datafile > /opt/local/modules/hieradata/common.yaml, skipping > nil > > > --- > :backends: > - yaml > :yaml: > :datadir: "/opt/local/modules/hieradata" > :hierarchy: > - '%{calling_module}/%{::hostname}' > - '%{calling_module}/common' > - common > - puppet_test > > hiera -d 'dhcpd::package_name' environment=production > DEBUG: 2016-07-18 20:49:30 -0400: Hiera YAML backend starting > DEBUG: 2016-07-18 20:49:30 -0400: Looking up dhcpd::package_name in YAML > backend > DEBUG: 2016-07-18 20:49:30 -0400: Looking for data source common > DEBUG: 2016-07-18 20:49:30 -0400: Cannot find datafile > /opt/local/modules/hieradata/common.yaml, skipping > DEBUG: 2016-07-18 20:49:30 -0400: Looking for data source puppet_test > DEBUG: 2016-07-18 20:49:30 -0400: Cannot find datafile > /opt/local/modules/hieradata/puppet_test.yaml, skipping > nil > > -- > 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 puppet-users+unsubscr...@googlegroups.com > <javascript:_e(%7B%7D,'cvml','puppet-users%2bunsubscr...@googlegroups.com');> > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/34a20f55-02a2-49c7-88d2-28885636dab2%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/34a20f55-02a2-49c7-88d2-28885636dab2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Rob Nelson rnels...@gmail.com -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC76iT-nj8LKObnHkU1CzCHkqALSOxk7yaE%2BeGhpzfOfL3ZtPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.