Revision 3c3bccab snf-deploy/snfdeploy/fabfile.py
b/snf-deploy/snfdeploy/fabfile.py | ||
---|---|---|
6 | 6 |
""" |
7 | 7 |
|
8 | 8 |
from __future__ import with_statement |
9 |
from fabric.api import hide, env, settings, local, roles |
|
9 |
from fabric.api import hide, env, settings, local, roles, execute
|
|
10 | 10 |
from fabric.operations import run, put, get |
11 | 11 |
import fabric |
12 | 12 |
import re |
... | ... | |
853 | 853 |
|
854 | 854 |
@roles("master") |
855 | 855 |
def add_nodes(): |
856 |
nodes = env.env.cluster_nodes.split(",") |
|
857 |
nodes.remove(env.env.master_node) |
|
858 | 856 |
debug(env.host, " * Adding nodes to Ganeti backend...") |
859 |
for n in nodes: |
|
857 |
for n in env.env.cluster_nodes:
|
|
860 | 858 |
add_node(n) |
861 | 859 |
|
862 | 860 |
|
Also available in: Unified diff