jamtur01 / puppet-rundeck

Puppet integration with RunDeck
Apache License 2.0
45 stars 16 forks source link

puppet-rundeck errors out with NoMethodError - undefined method `to_xs' #26

Closed tvc123 closed 10 years ago

tvc123 commented 10 years ago

I followed the instructions and installed puppet-rundeck with gem install puppet-rundeck. Everything installed fine but when I go to request the list I get the following error [2014-08-12 09:56:06] INFO WEBrick::HTTPServer#start: pid=25033 port=8144 NoMethodError - undefined methodto_xs' for "xxx-yyy.xxx.xxx.com":String: /var/lib/gems/1.9.1/gems/puppet-rundeck-0.0.7/lib/puppet-rundeck.rb:41:in xml_escape' /var/lib/gems/1.9.1/gems/puppet-rundeck-0.0.7/lib/puppet-rundeck.rb:66:inblock (2 levels) in class:PuppetRundeck'`

I am running ubuntu 14.4 with Puppet and Foreman installed on the host.

jamtur01 commented 10 years ago

You you please try the newly released 0.0.8 version.

tvc123 commented 10 years ago

with 0.0.8 I get the following NoMethodError - undefined method `values' for

Puppet::Node:0x00000003078570:

/var/lib/gems/1.9.1/gems/puppet-rundeck-0.0.8/lib/puppet-rundeck.rb:66:in `block (2 levels) in class:PuppetRundeck'

/var/lib/gems/1.9.1/gems/puppet-rundeck-0.0.8/lib/puppet-rundeck.rb:60:in `each'

/var/lib/gems/1.9.1/gems/puppet-rundeck-0.0.8/lib/puppet-rundeck.rb:60:in block in <class:PuppetRundeck>' /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in call' /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in block in compile!' /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in []' /var/lib/gems/1.9.1/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block (3 levels) in route!'

On Tue, Aug 12, 2014 at 11:03 AM, James Turnbull notifications@github.com wrote:

You you please try the newly released 0.0.8 version.

— Reply to this email directly or view it on GitHub https://github.com/jamtur01/puppet-rundeck/issues/26#issuecomment-51944213 .

jamtur01 commented 10 years ago

What version of Puppet are you running?

tvc123 commented 10 years ago

puppet --version 3.6.2

On Tue, Aug 12, 2014 at 11:11 AM, James Turnbull notifications@github.com wrote:

What version of Puppet are you running?

— Reply to this email directly or view it on GitHub https://github.com/jamtur01/puppet-rundeck/issues/26#issuecomment-51945284 .

jamtur01 commented 10 years ago

Okay - try 0.0.9 which I just pushed that replaced builder with fast_xs. That should resolve the issue. Apologies. This code doesn't get maintained much and I don't use Puppet much anymore.

tvc123 commented 10 years ago

Thank you that resolves the issue!

On Tue, Aug 12, 2014 at 11:59 AM, James Turnbull notifications@github.com wrote:

Okay - try 0.0.9 which I just pushed that replaced builder with fast_xs. That should resolve the issue. Apologies. This code doesn't get maintained much and I don't use Puppet much anymore.

— Reply to this email directly or view it on GitHub https://github.com/jamtur01/puppet-rundeck/issues/26#issuecomment-51951827 .