Skip to content

Instantly share code, notes, and snippets.

@jeffmccune
Created April 13, 2011 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmccune/918076 to your computer and use it in GitHub Desktop.
Save jeffmccune/918076 to your computer and use it in GitHub Desktop.
Getting my bearings in the node terminus
517 ~ % rdebug puppet -- --node_terminus=exec_with_fact -e 'notice("Hi")'
(rdb:1) catch NotImplementedError
Catch exception NotImplementedError.
(rdb:1) continue
Catchpoint at /Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb:10: `We should translate certname to a fact value.' (NotImplementedError)
from /Users/jeff/src/puppet/lib/puppet/application.rb:304:in `run'
from /Users/jeff/src/puppet/lib/puppet/application.rb:410:in `exit_on_fail'
from /Users/jeff/src/puppet/lib/puppet/application.rb:304:in `run'
from /Users/jeff/src/puppet/lib/puppet/util/command_line.rb:59:in `execute'
from /Users/jeff/src/puppet/bin/puppet:4
from /Users/jeff/.rvm/gems/ruby-1.8.7-p302/gems/ruby-debug-0.10.4/bin/rdebug:126:in `debug_load'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p302/gems/ruby-debug-0.10.4/bin/rdebug:126:in `debug_program'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p302/gems/ruby-debug-0.10.4/bin/rdebug:413
from /Users/jeff/.rvm/gems/ruby-1.8.7-p302/bin/rdebug:19:in `load'
from /Users/jeff/.rvm/gems/ruby-1.8.7-p302/bin/rdebug:19
/Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb:10
raise NotImplementedError, "We should translate certname to a fact value."(rdb:1) l
[5, 14] in /Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb
5
6 def find(request)
7 # JJM: Find out if we have access to the facts here. I think we do.
8 # Add a configuration setting to determine which fact to inspect.
9 # Execute the ENC script with the fact value.
=> 10 raise NotImplementedError, "We should translate certname to a fact value."
11 end
12
13 private
14
(rdb:1) putl request
#<Puppet::Indirector::Request:0x10241b600
@indirection_name=:node,
@instance=nil,
@key="heif.local",
@method=:find,
@options={}>
(rdb:1) bt
--> #0 Kernel.find(request#Puppet::Indirector::R..., __dbg_verbose_save#FalseClass)
at line /Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb:10
#1 Puppet::Node::ExecWithFact.find(request#Puppet::Indirector::R...)
at line /Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb:10
#2 Puppet::Indirector::Indirection.find(key#String)
at line /Users/jeff/src/puppet/lib/puppet/indirector/indirection.rb:188
#3 Puppet::Indirector::ClassMethods.find
at line /Users/jeff/src/puppet/lib/puppet/indirector.rb:50
#4 Puppet::Application::Apply.main
at line /Users/jeff/src/puppet/lib/puppet/application/apply.rb:93
#5 Puppet::Application::Apply.run_command
at line /Users/jeff/src/puppet/lib/puppet/application/apply.rb:35
#6 Puppet::Application.run(message#String, code#Fixnum)
at line /Users/jeff/src/puppet/lib/puppet/application.rb:304
#7 Puppet::Application.run
at line /Users/jeff/src/puppet/lib/puppet/application.rb:304
#8 Puppet::Util::CommandLine.new
at line /Users/jeff/src/puppet/lib/puppet/util/command_line.rb:59
#9 new at line /Users/jeff/src/puppet/bin/puppet:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment