On Sun, May 29, 2011 at 9:56 AM, Nicolas Michel
<nicolas.mic...@lemail.be> wrote:

>    env.roledefs = {
>        'host1': ['example.no-ip.org'],
>        'host2': ['172.33.29.34'],
>        # below this is a group a hosts
>        group1: ['host1', 'host2'],
>    }

Unfortunately, roles are not recursive like this at the moment, which
is why this won't work for you. I believe adding this is in the cards
somewhere (we have a lot of cards) but it's not at the top of the
list.

If you haven't already, check out the execution docs, which explain
how things currently work:

    http://docs.fabfile.org/en/1.0.1/usage/execution.html

You can get more flexibility by manually juggling env.host_string --
see the 'Connections' section of the above link for details. It's not
perfect (you lose the "automatic" connection handling of the
roles/hosts CLI options and decorators) but may help.


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

_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to