Thanks Trevor... I will be trying this:

# post install
...
cat <<EOF >>/etc/rc.local
/opt/ruby-enterprise/bin/puppet agent --no-noop --test
sed -ie '/puppet/d' /etc/rc.local
EOF


On Fri, Feb 4, 2011 at 12:39 PM, Trevor Vaughan <[email protected]> wrote:
> Post kickstart, you don't get a PTY if I remember correctly.
>
> You'll just need to do things with a HEREDOC instead.
>
> Trevor
>
> On Fri, Feb 4, 2011 at 10:17 AM, Mohamed Lrhazi <[email protected]> wrote:
>> I have a puppet Exec that launches a python script I wrote, which uses
>> pexpect (a Python Expect module), to run an interactive software
>> installation... This is done in the post install script of kickstart
>> (in chroot environment).
>> the Exec fails because pexpect fails with error: pty.fork failed: out
>> of pty devices
>>
>> After reboot, an extra run of puppet works fine.
>>
>> Any idea how to solve this? Is this inherent limitation of chrooted,
>> post-install, environment, or can one solve it by setting some
>> environment var in the Exec type or something?
>>
>> Thanks a lot.
>> Mohamed.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>
>
>
> --
> Trevor Vaughan
> Vice President, Onyx Point, Inc
> (410) 541-6699
> [email protected]
>
> -- This account not approved for unencrypted proprietary information --
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>

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

Reply via email to