[Puppet Users] Passing input to script within an exec statement fails

paul matthews
Mon, 28 Sep 2009 14:46:36 -0000

Hi,
From the command line I can successfully perform this:-

echo y | /mnt/Linux/install.sh

Trying the same thing from an exec, though, fails and I''m not too sure
how
to get round it

          command => "(echo y | /mnt/Linux/install.sh)",

err: //Node[host]/vm_post_install/Exec[install-xenserver-tools]/returns:
change from notrun to 0 failed: (echo y | /mnt/Linux/install.sh) returned 1
instead of 0 at /etc/puppet/modules/vm_post_install/manifests/init.pp:30

I''ve tried without the brackets as well - same result

Unfortunately, in this case the option does not exist to avoid the script
(as I''m mounting an iso and running the package''s install
script)

Thanks
Paul


--
Paul Matthews
----------------------------------------------------------------------