deploy: Fix context issues in fabfile
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:
Dimitris Aragiorgis <dimara@grnet.gr>
Showing
Please register or sign in to comment