mco rpc shell start... using ruby 1.8.7?

asked 2016-12-19 17:58:43 -0600

Hi everyone,

I have over 1000 machines using ruby 1.8.7. I want to use the mcollective command

mco rpc shell start command=/usr/local/sbin/some.sh -I somehost

At first I was getting an error regarding securerandom.uuid. I was able to backport that code. Now I'm getting

undefined method 'spawn' for Process:Module

Can someone give me a hint as to how to solve this without upgrading ruby to 1.9.3? Thanks.

edit retag flag offensive close merge delete

Comments

Since you are using such an old version of ruby, it may be easier to totally ignore the ruby part and switch to a tool like ansible to do your 'remote shell' execution. They even have a 'puppet' module that you can use to kick of puppet runs. https://docs.ansible.com/ansible/puppet_module.html

DarylW gravatar imageDarylW ( 2016-12-20 09:50:45 -0600 )edit