Revision 8f5ea521

b/snf-deploy/conf/deploy.conf
25 25
lib = /usr/lib/snf-deploy
26 26
# dir to store executed commands (to enforce sequential execution)
27 27
cmd = /var/run/snf-deploy/cmd
28

  
29
[keys]
30
# whether to create new keys
31
keygen = False
32
# whether to inject ssh keys found in templates/root/.ssh in nodes
33
key_inject = True
b/snf-deploy/fabfile.py
226 226

  
227 227
@roles("ips")
228 228
def add_keys():
229
    debug(env.host, "Adding rsa/dsa keys..")
229
    if not ast.literal_eval(env.env.key_inject):
230
      debug(env.host, "Skipping ssh keys injection..")
230 231
    try_run("mkdir -p /root/.ssh")
231 232
    cmd = """
232 233
for f in $(ls /root/.ssh/*); do
b/snf-deploy/snfdeploy/__init__.py
380 380
                      default=None,
381 381
                      help="Path of an existing ssh key to use")
382 382

  
383
  parser.add_argument("--no-key-inject", dest="key_inject",
384
                      default=True, action="store_false",
385
                      help="Whether to inject ssh key pairs to hosts")
386

  
383 387
  # backend related options
384 388
  parser.add_argument("--cluster-name", dest="cluster_name",
385 389
                      default="ganeti1",
b/snf-deploy/snfdeploy/lib.py
128 128

  
129 129
    files = {
130 130
        "nodes": ["network", "info"],
131
        "deploy": ["dirs", "packages"],
131
        "deploy": ["dirs", "packages", "keys"],
132 132
        "vcluster": ["cluster", "image"],
133 133
        "synnefo": ["cred", "synnefo", "roles"],
134 134
        "packages": ["debian", "ganeti", "synnefo", "other"],

Also available in: Unified diff