Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

hiera only finding common.yaml and fqdn.yaml

$
0
0
Hi All, I'm working on a new Puppet setup and I'm running into an issue with hiera where it only applies classes found in common.yaml or $fqdn.yaml. The Puppet Server is CentOS 6.8 running puppetserver.noarch 2.5.0-1.el6 @puppetlabs-pc1. Below is my site.pp, following that is my hiera.yaml cat site.pp hiera_include('classes') File { backup => false, } cat hiera.yaml --- :backends: - yaml :yaml: :datadir: "/etc/puppetlabs/code/environments/development/hieradata" :hierarchy: - "nodes/%{::fqdn}" - "osfamily/%{::os.family}-%{::os.release.major}" - "osfamily/%{::os.family}" - common Below is the directory structure with directories for osfamily as well as individual nodes. tree . ├── common.yaml ├── hiera.yaml ├── nodes │   ├── dev6.example.com.yaml │   └── dev7.example.com.yaml └── osfamily ├── RedHat-6.yaml ├── RedHat-7.yaml └── RedHat.yaml The yaml files are very simple since I've been trying to cut everything out while debugging this. cat common.yaml --- classes: - bash cat nodes/dev6.example.com.yaml --- classes: - glibc cat nodes/dev7.example.com.yaml --- classes: - glibc cat osfamily/RedHat-6.yaml --- classes: - postfix cat osfamily/RedHat-7.yaml --- classes: - postfix cat osfamily/RedHat.yaml --- classes: - httpd I've been browsing the questions related to hiera, and it seems a lot of people have issues similar to this, one person updated to the latest and the issue vanished. I have verified the clients are sending the os.family and os.release.major facts. Thanks for taking a look.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>