Hi
I have a bash script produce this for my test node
---
environment: production
ybenv: alextest
I have this in my hiera.yaml file
:hierarchy:
# node specific
- "nodes/%{::trusted.certname}"
# OS specific
- "os/%{::osfamily}"
# Envornment
- "ybenv/%{::ybenv}"
# common to all
- common
These are my hieradata files
hieradata/
hieradata/os
hieradata/os/RedHat.yaml
hieradata/nodes
hieradata/nodes/testnode.yaml
hieradata/common.yaml
hieradata/ybenv
hieradata/ybenv/alextest.yaml
But this file doesn't seem to be getting read
hieradata/ybenv/alextest.yaml
and tried doing some testing in my site.pp
tried this
$ybenv=hiera('ybenv')
info("Certname [${trusted['certname']}] OsName [${osfamily}] ybenv [${ybenv}] environment [${environment}]")
and also just this
info("ybenv [${ybenv}]")
and it the logs it say ybenv undefined
A