fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Is there a way to use fab to install programs on remote m


From: Jeff Forcier
Subject: Re: [Fab-user] Is there a way to use fab to install programs on remote machine?
Date: Thu, 5 Apr 2012 13:44:41 -0700

On Thu, Apr 5, 2012 at 1:40 PM, Qitong Hu <address@hidden> wrote:
> I'm wondering if there is a way to "click"
> the OK

Nope. Fabric's not an expect clone, nor does it know how to move the
mouse or anything :)

> or maybe add something in the
> command to make it default accept?

This is always the right answer (for any scripting tool -- not just
Fabric.) You need to understand the installer well enough to figure
out how to script it so it can be run non-interactively.

For example, on Debian Linux systems you can use the "debconf" system
to pre-set any question an installer might try to prompt you for.
Takes a little bit of researching to find out which settings those are
for the package in question, but it is definitely doable.

Sometimes it's enough just to tell the package manager to run
non-interactively (e.g. DEBIAN_FRONTEND=noninteractive apt-get install
xyz) or to give it a "always say yes please" flag like -y. Many
packages will look at these hints and skip prompting you entirely.

But again, this is all 100% Fabric agnostic and depends entirely on
your remote system :)

Good luck,
Jeff


-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]