PUPPET-LOOKUP(8) OpenVox manual PUPPET-LOOKUP(8) (NAME) puppet-lookup - Hiera Puppet (SYNOPSIS) Hiera . Hiera . OpenVox 'puppet lookup' sudo . : 'puppet lookup KEY --node NAME --environment ENV --explain' (USAGE) puppet lookup [--help] [--type TYPESTRING] [--merge first|unique|hash|deep] [--knock-out-prefix PREFIX-STRING] [--sort-merged-arrays] [--merge-hash-arrays] [--explain] [--environment ENV] [--default VALUE] [--node NODE-NAME] [--facts FILE] [--compile] [--render-as s|json|yaml|binary|msgpack] keys (DESCRIPTION) lookup (CLI) 'lookup()' Puppet . Hiera . 'hiera' . Lookup hiera.yaml puppet (environment) hiera.yaml (modulepath) ( hiera.yaml ) . Hiera (facts) . 'puppet lookup' '--node NAME' . lookup PuppetDB PuppetDB JSON YAML '--facts FILE' . Hiera '--explain' . '--explain' lookup . '--explain' lookup . . Hiera Hiera : https://puppet.com/docs/puppet/latest/hiera_intro.html (OPTIONS) o --help: . o --explain ( ). o --node NODE-NAME . Hiera ( ) . PuppetDB '--facts' . o --facts FILE .json .yaml key => value . . o --environment ENV Puppet . Hiera . . o --merge first|unique|hash|deep: lookup_options . 'first' . 'unique' . 'hash' . 'deep' Array Hash . 'deep' . o --knock-out-prefix PREFIX-STRING 'deep' . . o --sort-merged-arrays 'deep' . . o --merge-hash-arrays 'deep' . . o --explain-options lookup_options ( lookup_options Hiera ). o --default VALUE Hiera . 'lookup()' . o --type TYPESTRING: . 'lookup()' . o --compile . $facts $trusted $server_facts Hiera Puppet . . o --render-as s|json|yaml|binary|msgpack "s" . yaml s . (EXAMPLES) 'key_name' Puppet: $ puppet lookup key_name 'key_name' Puppet : $ puppet lookup key_name --compile 'key_name' Puppet : $ puppet lookup key_name --facts fact_file.yaml 'key_name' agent.local: $ puppet lookup --node agent.local key_name 'key_name_one' 'key_name_two' agent.local 'foo' : $ puppet lookup --node agent.local --merge deep --knock-out-prefix foo key_name_one key_name_two 'key_name' agent.local 'bar' : $ puppet lookup --node agent.local --default bar key_name 'key_name' agent.local: $ puppet lookup --node agent.local --explain key_name (COPYRIGHT) (c) 2015 Puppet Inc. (c) 2024 Vox Pupuli Apache 2.0 . Vox Pupuli January 2025 PUPPET-LOOKUP(8)