Skip to content

Instantly share code, notes, and snippets.

@matkam11
Created March 19, 2016 00:28
Show Gist options
  • Save matkam11/728103daf0a47047bcff to your computer and use it in GitHub Desktop.
Save matkam11/728103daf0a47047bcff to your computer and use it in GitHub Desktop.
hiera-puppet error
puppet apply -e '$test=hiera(::db_password) notify { $test: }' --trace
Error loading fact /etc/puppet/modules/collectd/lib/facter/collectd_real_version.rb: /etc/puppet/modules/collectd/lib/facter/collectd_real_version.rb:13: undefined (?...) sequence: /^collectd (?<version>[\w.]+), http:\/\/collectd.org\//
Error loading fact /var/lib/puppet/lib/facter/collectd_real_version.rb: /var/lib/puppet/lib/facter/collectd_real_version.rb:13: undefined (?...) sequence: /^collectd (?<version>[\w.]+), http:\/\/collectd.org\//
Warning: Could not load fact file /etc/puppet/modules/collectd/lib/facter/collectd_real_version.rb: ./collectd_real_version.rb:13: undefined (?...) sequence: /^collectd (?<version>[\w.]+), http:\/\/collectd.org\//
Warning: Could not load fact file /var/lib/puppet/lib/facter/collectd_real_version.rb: ./collectd_real_version.rb:13: undefined (?...) sequence: /^collectd (?<version>[\w.]+), http:\/\/collectd.org\//
/usr/lib/ruby/1.8/logger.rb:172: warning: already initialized constant VERSION
/usr/lib/ruby/1.8/logger.rb:173: warning: already initialized constant ProgName
/usr/lib/ruby/1.8/logger.rb:180: warning: already initialized constant DEBUG
/usr/lib/ruby/1.8/logger.rb:181: warning: already initialized constant INFO
/usr/lib/ruby/1.8/logger.rb:182: warning: already initialized constant WARN
/usr/lib/ruby/1.8/logger.rb:183: warning: already initialized constant ERROR
/usr/lib/ruby/1.8/logger.rb:184: warning: already initialized constant FATAL
/usr/lib/ruby/1.8/logger.rb:185: warning: already initialized constant UNKNOWN
/usr/lib/ruby/1.8/logger.rb:423: warning: already initialized constant SEV_LABEL
/usr/lib/ruby/1.8/logger.rb:435: warning: already initialized constant Format
/usr/lib/ruby/1.8/logger.rb:536: warning: already initialized constant SiD
Error loading fact /var/lib/puppet/lib/facter/collectd_real_version.rb: /var/lib/puppet/lib/facter/collectd_real_version.rb:13: undefined (?...) sequence: /^collectd (?<version>[\w.]+), http:\/\/collectd.org\//
Error loading fact /var/lib/puppet/lib/facter/collectd_real_version.rb: /var/lib/puppet/lib/facter/collectd_real_version.rb:13: undefined (?...) sequence: /^collectd (?<version>[\w.]+), http:\/\/collectd.org\//
Error: wrong number of arguments (4 for 5) at line 1 on node puppet-server.domain.corp
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:159:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:159:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:156:in `each'
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:156:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera.rb:62:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera_puppet.rb:11:in `lookup'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions/hiera.rb:23:in `real_function_hiera'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:144:in `send'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:144:in `function_hiera'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:31:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:137:in `function_hiera'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/function.rb:42:in `send'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/function.rb:42:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/vardef.rb:14:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/block_expression.rb:15:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/block_expression.rb:10:in `each'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/block_expression.rb:10:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/vendor_ruby/puppet/resource/type.rb:121:in `evaluate_code'
/usr/lib/ruby/vendor_ruby/puppet/parser/resource.rb:79:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:366:in `evaluate_main'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:110:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:31:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:110:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:23:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:116:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:31:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:114:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:113:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:46:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:204:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:146:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:470:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:478:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
/usr/bin/puppet:4
Wrapped exception:
wrong number of arguments (4 for 5)
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:159:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:159:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:156:in `each'
/usr/lib/ruby/vendor_ruby/hiera/backend.rb:156:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera.rb:62:in `lookup'
/usr/lib/ruby/vendor_ruby/hiera_puppet.rb:11:in `lookup'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions/hiera.rb:23:in `real_function_hiera'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:144:in `send'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:144:in `function_hiera'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:31:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/functions.rb:137:in `function_hiera'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/function.rb:42:in `send'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/function.rb:42:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/vardef.rb:14:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/block_expression.rb:15:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/block_expression.rb:10:in `each'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast/block_expression.rb:10:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/ast.rb:62:in `safeevaluate'
/usr/lib/ruby/vendor_ruby/puppet/resource/type.rb:121:in `evaluate_code'
/usr/lib/ruby/vendor_ruby/puppet/parser/resource.rb:79:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:366:in `evaluate_main'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:110:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:31:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:110:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/parser/compiler.rb:23:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:116:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler/none.rb:6:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/util/profiler.rb:31:in `profile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:114:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:113:in `compile'
/usr/lib/ruby/vendor_ruby/puppet/indirector/catalog/compiler.rb:46:in `find'
/usr/lib/ruby/vendor_ruby/puppet/indirector/indirection.rb:201:in `find'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:204:in `main'
/usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:146:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:470:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:478:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
/usr/bin/puppet:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment