Last active
August 29, 2015 14:23
-
-
Save greglarkin/1c1f81893c6edc06f851 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$hierayaml = "${settings::confdir}/hiera.yaml" | |
$hash = loadyaml($hierayaml) | |
# Displays data with hash key "yaml" present | |
notice($hash) | |
# Extract the value of key "yaml" | |
$yaml = $hash['yaml'] | |
# $yaml is undef? | |
notice($yaml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
:backends: | |
- yaml | |
:yaml: | |
:datadir: /etc/puppetlabs/puppet/environments/%{::environment}/hieradata | |
:hierarchy: | |
- "nodes/%{::clientcert}" | |
- "environments/%{::environment}" | |
- "os/%{::operatingsystem}-%{::operatingsystemrelease}" | |
- "os/%{::operatingsystem}-%{::operatingsystemmajrelease}" | |
- "os/%{::operatingsystem}" | |
- defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notice: Scope(Class[main]): {backends => [yaml], yaml => {datadir => /etc/puppetlabs/puppet/environments/%{::environment}/hieradata}, hierarchy => [nodes/%{::clientcert}, environments/%{::environment}, os/%{::operatingsystem}-%{::operatingsystemrelease}, os/%{::operatingsystem}-%{::operatingsystemmajrelease}, os/%{::operatingsystem}, defaults]} | |
Notice: Scope(Class[main]): | |
Notice: Compiled catalog for puppet-tor-b.starfirenetwork.com in environment production in 0.39 seconds | |
Notice: Finished catalog run in 0.17 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment