diff options
author | khilman <khilman@users.noreply.github.com> | 2018-11-02 08:36:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 08:36:03 -0700 |
commit | 35f9ef3bbbc39bc190a168db4994872d3aecc689 (patch) | |
tree | 3e77ddde028e59c73f5b0ca4d833843c3e32559b /lavalab-gen.py | |
parent | 95212ea3c686f60a520f617abbfe32b0f1fc2353 (diff) | |
parent | 66e65375f30137e5320766403a1b23069b4cd5cd (diff) |
Merge pull request #59 from montjoie/fix_for_sprint
Misc. fixes for oct sprint
Diffstat (limited to 'lavalab-gen.py')
-rwxr-xr-x | lavalab-gen.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lavalab-gen.py b/lavalab-gen.py index 3dd8eb4..7061a72 100755 --- a/lavalab-gen.py +++ b/lavalab-gen.py @@ -93,7 +93,7 @@ def main(): else: masters = workers["masters"] for master in masters: - keywords_master = [ "name", "type", "host", "users", "groups", "tokens", "webadmin_https", "persistent_db", "zmq_auth", "zmq_auth_key", "zmq_auth_key_secret", "http_fqdn" ] + keywords_master = [ "name", "type", "host", "users", "groups", "tokens", "webadmin_https", "persistent_db", "zmq_auth", "zmq_auth_key", "zmq_auth_key_secret", "http_fqdn", "slave_keys" ] for keyword in master: if not keyword in keywords_master: print("WARNING: unknown keyword %s" % keyword) @@ -166,6 +166,11 @@ def main(): else: zmq_auth_genlist.write("%s/%s\n" % (host, name)) need_zmq_auth_gen = True + if "slave_keys" in worker: + src_files = os.listdir(worker["slave_keys"]) + for file_name in src_files: + full_file_name = os.path.join(worker["slave_keys"], file_name) + shutil.copy(full_file_name, "%s/zmq_auth/" % workerdir) if "users" in worker: for user in worker["users"]: keywords_users = [ "name", "staff", "superuser", "password", "token", "email", "groups" ] |