Hi Using an ENC
/usr/local/bin/puppet_node_classifier abc.abc.com --- environment: production parameters: pp_ybenv: alex pp_yblocation: ybo from hiera.yaml :hierarchy: # node specific - "nodes/%{::trusted.certname}" # Envornment - "ybenv/%{::pp_ybenv}" # OS specific - "os/%{::osfamily}" # common to all - common I create a file /etc/ybenv which records $pp_ybenv and it gets set to alex but my file hieradata/ybenv/alex.yaml doesn't get read ? I set this in alex.yaml hr_motd_content: ">>>>>>> alex environment <<<<<<<<<<" use it in a class like this $pp_motd_content_array =hiera_array( 'hr_motd_content', [] ) $pp_motd_content = join( $pp_motd_content_array, " ") [...] class { 'motd' : content => "Server build V1.6 $pp_motd_content You are logging into ${trusted['certname']} Environment [$pp_ybenv] " } if I add the same info to a node specific file or the common.yaml it show up.. for some reason hiera is not looking at pp_ybenv -- 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/68d73369-142e-448d-9b8f-e7c9f9b1a98c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.