diff options
author | Linus Nordberg <linus@nordu.net> | 2015-06-05 13:45:12 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-06-05 13:45:12 +0200 |
commit | e21514105975f34d5c820c8446c1dd8178c3e775 (patch) | |
tree | f69025eaf212297cfcd37549571773e7729b4747 /mklog.py | |
parent | 80d4c8b44cf8e12b89d63bbd4e468ed4b535655b (diff) |
Copy cacert.pem to merge nodes too.
Diffstat (limited to 'mklog.py')
-rwxr-xr-x | mklog.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -143,6 +143,11 @@ def create_destdirs(logname, nodenames): if not os.access(d, os.F_OK): os.makedirs(d) +def copy_cacert(nodenames): + ca_cert = './httpscerts/demoCA/cacert.pem' + for nodename in nodenames: + shutil.copy(ca_cert, './nodes/%s/cacert.pem' % nodename) + def main(): parser = argparse.ArgumentParser(description="") parser.add_argument('config', help="System configuration") @@ -162,5 +167,6 @@ def main(): copy_logkey(logname, nodenames + mergenodenames) make_certs(logname, nodenames) make_authkeys(nodenames + mergenodenames) + copy_cacert(mergenodenames) main() |