Hi all,

I am using Puppet to execute an Expect script (http://expect.sourceforge.net)
on a client. The Puppet recipe, test.pp, is:

exec { '/root/test.exp':
  command => '/root/test.exp',
  logoutput => true
}

The recipe runs correctly when run using 'puppet --debug --verbose test.pp':
debug: /Stage[main]//Exec[/root/test.exp]: Executing '/root/test.exp'
debug: Executing '/root/test.exp'
notice: /Stage[main]//Exec[/root/test.exp]/returns: spawn
/etc/ssl/misc/CA.pl -newca
...
notice: /Stage[main]//Exec[/root/test.exp]/returns: executed successfully

However, it fails when run using puppetd:
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
spawn /etc/ssl/misc/CA.pl -newca#015
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
#015
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
send: spawn id exp3 not open
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
while executing
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
"send "password\r""
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
(file "/root/test.exp" line 9)#015
... puppet-agent[3650]: (/Stage[main]/Mail/Exec[/root/test.exp]/returns)
change from notrun to 0 failed: /root/test.exp returned 1 instead of one of
[0] at ...

Is there any difference in the way Puppet executes a recipe using 'puppet
--debug --verbose' compared to using puppetd?

Martin.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to