[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] Hosts, and their usage.
From: |
Phil Harris |
Subject: |
[Fab-user] Hosts, and their usage. |
Date: |
Tue, 28 Jul 2009 12:16:47 +0100 |
First post to this list, so please be nice :)
OK, here's a highly simplified version of what I'm trying to achieve:
I have a set of tasks something like this:
@roles('target1')
def ls():
run('ls /tmp')
ls2()
@roles('target2')
def ls2():
run('ls /tmp')
This runs correctly (as in there are no errors), but I would like the
ls2 command to run on target2, at the moment it runs on target1 when
called from target1. The actual command I've got is a bit more
complex and the constituent parts are logically grouped.
Basically I'm writing a script to transfer one IBM WebSphere Portal to
another (we call this staging). One of the tasks is to deploy themes
to the target, which consists of a Deployment Manager (dm), and 2 app
servers (clustered, target1 and target2). Parts of the theme have to
go onto the dm machine and other parts have to go onto both target1 &
target2.
Any ideas how I would get the simplified commands to run on the
machines I need them running on?
Hope that makes sense.
Thanks in advance.
- [Fab-user] Hosts, and their usage.,
Phil Harris <=