Re: Handling Interactive Installers

151 views
Skip to first unread message

Jesse Newland

unread,
Jul 6, 2011, 3:58:14 PM7/6/11
to railsmachin...@googlegroups.com
The short answer - use the non-interactive mode for the installer and configure via files afterwards. For apt, this does the trick:

ENV['DEBIAN_FRONTEND'] = "noninteractive"

Does the PECL installer have a similar option?

Regards -

Jesse Newland
---
je...@railsmachine.com
404.216.1093

On Jul 6, 2011, at 3:56 PM, PJ Kelly wrote:

> How does Moonshine (and more likely Puppet) handle installers that
> have interactive steps? For instance, when you run apt-get install,
> you're sometimes presented with a request to confirm what's being
> installed.
>
> I ask because I'm working on installing a PECL extension for PHP that
> has a multi-step interactive installer. All the defaults make sense,
> but am wondering how to change those defaults through Moonshine/Puppet
> if need be.
>
> --
> You received this message because you are subscribed to the Google Groups "Moonshine" group.
> To post to this group, send email to railsmachin...@googlegroups.com.
> To unsubscribe from this group, send email to railsmachine-moon...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/railsmachine-moonshine?hl=en.
>

PJ Kelly

unread,
Jul 6, 2011, 3:56:30 PM7/6/11
to Moonshine

PJ Kelly

unread,
Jul 7, 2011, 1:29:50 AM7/7/11
to Moonshine
Thanks Jesse.

I couldn't find any evidence of such an option for PECL or some Perl
modules I was installing, so I ended up using apt-get packages that
were available.

This was the path of least resistance, but do you have any
recommendations for when an apt-get package and control over the
interactive mode of an installer are not available? From what I can
tell, this sort of thing isn't easy with Puppet and the next best
option would be to use an answer file that gets passed to the
installer. For example, you have an answer file called answers.txt,
it could be passed in like so:

sudo pecl install apc < answers.txt

I tried this manually and it worked totally fine, so I assume it could
be done using Puppet's exec command.

Am I right in assuming this is the next easiest option?

Best, PJ

Jesse Newland

unread,
Jul 7, 2011, 11:45:42 AM7/7/11
to railsmachin...@googlegroups.com
PJ -

That's exactly what I'd do. Good luck!

Regards -

Reply all
Reply to author
Forward
0 new messages