foreman exec node.rb turn out: No such file or directory

100 views
Skip to first unread message

辛建国

unread,
Dec 15, 2015, 9:39:55 AM12/15/15
to Puppet Users
hi,when I exec "sudo -u puppet  /etc/puppet/node.rb puppet.server.com" command on puppet server ~ it turned out that ": No such file or directory", but when I run "sudo -u puppet  ruby /etc/puppet/node.rb puppet.server.com" command on puppet server,it works fine. how do I resolve it? 


the node.rb is come from foreman.

Martin Alfke

unread,
Dec 16, 2015, 2:40:32 AM12/16/15
to puppet...@googlegroups.com

On 15 Dec 2015, at 07:33, 辛建国 <xjg2...@gmail.com> wrote:

> hi,when I exec "sudo -u puppet /etc/puppet/node.rb puppet.server.com" command on puppet server ~ it turned out that ": No such file or directory", but when I run "sudo -u puppet ruby /etc/puppet/node.rb puppet.server.com" command on puppet server,it works fine. how do I resolve it?

The command (/etc/puppet/node.rb) needs to be executable if you want to run it directly.
What does your puppet.conf file on the master has configured in external_nodes setting?


Reply all
Reply to author
Forward
0 new messages