From 8d1f2ceadac382c6ea42ee3e29633cf99de1a58d Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Mon, 8 Jul 2019 18:27:11 +0200 Subject: generate eip-service.json --- scripts/templates/.eip-service.json.swp | Bin 0 -> 12288 bytes scripts/templates/eip-service.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 scripts/templates/.eip-service.json.swp create mode 100644 scripts/templates/eip-service.json (limited to 'scripts/templates') diff --git a/scripts/templates/.eip-service.json.swp b/scripts/templates/.eip-service.json.swp new file mode 100644 index 0000000..284242a Binary files /dev/null and b/scripts/templates/.eip-service.json.swp differ diff --git a/scripts/templates/eip-service.json b/scripts/templates/eip-service.json new file mode 100644 index 0000000..8d1b0a1 --- /dev/null +++ b/scripts/templates/eip-service.json @@ -0,0 +1,32 @@ +{ + "serial": 3, + "version": 3, + "locations": { {% for loc in locations %} + "{{loc}}": { + "name": "{{ locations[loc]["name"] }}", + "country_code": "{{ locations[loc]["country_code"] }}", + "hemisphere": "{{ locations[loc]["hemisphere"] }}", + "timezone": {{ locations[loc]["timezone"] }}, + },{% endfor %} + }, + "gateways": { {% for gw in gateways %} + "{{gw}}": { + "host": "{{ gateways[gw]["host"] }}", + "ip_address": "{{ gateways[gw]["ip_address"] }}", + "location": "{{ gateways[gw]["location"] }}", + "capabilities": { + "adblock": false, + "filter_dns": false, + "limited": false, + "transport": [ {% for tr, proto, port, options in gateways[gw]["transports"] %} + {"type": "{{ tr }}", + "protocols": ["{{ proto }}"], + "ports": [{{ port }}],{% if options %} + "options": {{ options | tojson }},{% endif %} + },{% endfor %} + ], + }, + },{% endfor %} + }, + "openvpn_configuration": {{ openvpn|tojson(indent=8) }} +} -- cgit v1.2.3