Meant to send this to the list.

> I'll check out dsh, I've actually never heard of that tool. However, I
> just added this to my fabfile:
>
> def runcmd(arg):
>    """Run specified command: runcmd:"ifconfig -a" """
>    if env.user != "root":
>        sudo("%s" % arg)
>    else:
>        run("%s" % arg)
>
> Takes care of the use case you mentioned.
>
> The reason I am doing these large functions is that we are going to be
> distributing a "fabric package" to a number of departments in order to
> increase usability across our server space. We are managing 500
> servers right now, and while we are still tinkering, Fabric has so far
> been a great compliment to Puppet (which sucks at one off commands).
> All of the functions are set routines and nothing too complicated.
>
> I am still brainstorming what the best way to this is, but would love
> to see something like a dependency structure. Ultimately if I can
> think of the best way to implement this I hope to get something like
> Rake's tasks and their dependency tree.
>
> I'll keep digging, thanks for the dsh suggestion.

-- 
# cbm
# @projectcloud.com (Site coming soon!)


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

Reply via email to