summaryrefslogtreecommitdiff
path: root/tools/merge.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2015-09-24 16:47:32 +0200
committerLinus Nordberg <linus@nordu.net>2015-11-10 12:48:46 +0100
commitaaed8aff7c425c8ac2a15e584e24317da327f5e4 (patch)
tree229a7e5718b0d4c9750918d654484dba354f5194 /tools/merge.py
parentab327d88f7a8f458b6150efd6b21b5615210e571 (diff)
Merge is now run by shell script tools/merge.
tools/merge run merge_fetch.py, merge_backup.py, merge_sth.py and merge_dist.py sequentially. TODO: test backupquorum != 0
Diffstat (limited to 'tools/merge.py')
-rwxr-xr-xtools/merge.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/tools/merge.py b/tools/merge.py
deleted file mode 100755
index 212c171..0000000
--- a/tools/merge.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-#
-# Copyright (c) 2014-2015, NORDUnet A/S.
-# See LICENSE for licensing information.
-
-import argparse
-import yaml
-import sys
-from certtools import create_ssl_context
-from merge_fetch import merge_fetch
-from merge_backup import merge_backup
-from merge_dist import merge_dist
-
-def main():
- parser = argparse.ArgumentParser(description="")
- parser.add_argument('--config', help="System configuration",
- required=True)
- parser.add_argument('--localconfig', help="Local configuration",
- required=True)
- parser.add_argument("--nomerge", action='store_true',
- help="Don't actually do merge")
- parser.add_argument("--timing", action='store_true',
- help="Print timing information")
- args = parser.parse_args()
-
- config = yaml.load(open(args.config))
- localconfig = yaml.load(open(args.localconfig))
- paths = localconfig["paths"]
-
- create_ssl_context(cafile=paths["https_cacertfile"])
-
- sth = merge_fetch(args, config, localconfig)
- merge_backup(args, config, localconfig, sth)
- merge_dist(args, config, localconfig, sth)
-
-if __name__ == '__main__':
- sys.exit(main())