Several refactorings of ports, and more after pull-request recommendations were suggested by rawmind0

This commit is contained in:
Cobb, Randy
2018-04-09 14:43:15 -07:00
parent dc7c9c36bd
commit 34f243dd6f
4 changed files with 78 additions and 47 deletions
+19 -7
View File
@@ -1,7 +1,7 @@
version: '2'
catalog:
name: Vault
version: 1.0-test-rancher1
version: 1.0-rancher1
description: |
Installs a Vault container, internal (Rancher) load-balancer, and allows connection to a Consul cluster
uuid: vault-rac-0
@@ -12,21 +12,33 @@ catalog:
This is the embedded JSON format config file that vault will use at startup
type: multiline
default: |
{"backend":{"consul":{"address":"http://<listenAddress>:<listenPort>", "advertise_addr":"http://<advertiseAddress>","path":"<Path>"}}, "listener":{"tcp":{"address":"0.0.0.0:18200","tls_disable":1}}}
- variable: useConsul
{"backend":{"consul":{"address":"consul:8500", "path":"vault"}}, "listener":{"tcp":{"address":"0.0.0.0:8200","tls_disable":1}}, "cluster_name": "myCluster" }
- variable: VAULT_LISTEN_PORT
label: Vault Listen Port
description:
This is the port number you want Vault to listen on. Actually, Vault ALWAYS listens on port 8200, but it isn't exposed, so you can set the port you want the LoadBalancer to listen on.
default: 8200
type: int
- variable: VAULT_CLUSTER_PORT
label: Vault Cluster Port
description:
Similar to the Vault Listen Port, this is the VAULT CLUSTER listen port to use.
default: 8201
type: int
- variable: USE_CONSUL
label: Would you like to back Vault with Consul?
description: |
Selecting yes or no allows you to back your vault repoository with a pre-installed
Consul cluster/server
default: false
type: boolean
- variable: consulService
- variable: CONSUL_SERVICE
label: Specify the Consul service to connect to
description: |
The pre-installed Consul server to back to
default: "select"
type: service
- variable: volumeDriver
- variable: VOLUME_DRIVER
label: Driver for volumes
description: |
How/Where to store your vault config and logs
@@ -47,12 +59,12 @@ services:
- priority: 1
protocol: tcp
service: vault
source_port: 8200
source_port: ${VAULT_LISTEN_PORT}
target_port: 8200
- priority: 2
protocol: tcp
service: vault
source_port: 8201
source_port: ${VAULT_CLUSTER_PORT}
target_port: 8201
health_check:
response_timeout: 2000