diff options
author | elijah <elijah@riseup.net> | 2016-02-02 17:58:44 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-02-23 09:50:58 -0800 |
commit | 8eec2d89983934868c9be07d55825cbe3bdcdaaf (patch) | |
tree | e0c02a4d625828132f482a1838306e20a4a8494e /provider_base | |
parent | da2c743faaccd26604c4c26fbb1557934688eb4a (diff) |
added templates for `leap node add`, so that new nodes can get default values set in their initial .json file.
Diffstat (limited to 'provider_base')
-rw-r--r-- | provider_base/services/couchdb.json | 2 | ||||
-rw-r--r-- | provider_base/templates/common.json | 3 | ||||
-rw-r--r-- | provider_base/templates/couchdb.json | 5 | ||||
-rw-r--r-- | provider_base/templates/openvpn.json | 7 |
4 files changed, 16 insertions, 1 deletions
diff --git a/provider_base/services/couchdb.json b/provider_base/services/couchdb.json index 30cb53d1..167bbf7d 100644 --- a/provider_base/services/couchdb.json +++ b/provider_base/services/couchdb.json @@ -9,7 +9,7 @@ }, "couch": { "port": 5984, - "mode": "plain", + "mode": "multimaster", "users": { "admin": { "username": "admin", diff --git a/provider_base/templates/common.json b/provider_base/templates/common.json new file mode 100644 index 00000000..a7675b15 --- /dev/null +++ b/provider_base/templates/common.json @@ -0,0 +1,3 @@ +{ + "ip_address": "REQUIRED" +}
\ No newline at end of file diff --git a/provider_base/templates/couchdb.json b/provider_base/templates/couchdb.json new file mode 100644 index 00000000..34b60915 --- /dev/null +++ b/provider_base/templates/couchdb.json @@ -0,0 +1,5 @@ +{ + "couch": { + "mode": "plain" + } +} diff --git a/provider_base/templates/openvpn.json b/provider_base/templates/openvpn.json new file mode 100644 index 00000000..cbe183e8 --- /dev/null +++ b/provider_base/templates/openvpn.json @@ -0,0 +1,7 @@ +{ + "openvpn": { + "gateway_address": "REQUIRED", + "ports": ["443"], + "protocols": ["tcp"] + } +} |