• Dimitris Aragiorgis's avatar
    deploy: Fix context issues in fabfile · a3dc8e7e
    Dimitris Aragiorgis authored
    Ensure that the context that each component is setup with, is
    the correct one and does not include stale entries.
    Use fabric's execute() method with hosts argument the proper
    target nodes derived from current context. Introduce three
    new decorators for this purpose:
     - with_ctx gets the current context
     - with_node updates the context's node with env.host
     - with_cluster updates the context's cluster with env.host
    Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
fabfile.py 3.25 KB