-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathlocal.properties
78 lines (71 loc) · 2.48 KB
/
local.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This file should be sourced from the osprey/examples dir scripts
# Runtime directories
dexRuntime=${runtime}/dex
ospreyHome=${examplesLocalDir}/../../
ospreyRuntime=${runtime}/osprey
apiserverRuntime=${runtime}/apiserver
node=127.0.0.1
# Osprey server properties
ospreyImage=skycirrus/osprey:v1.0.0
ospreyHost=${node}
ospreyPort=5555
ospreyURL=https://${ospreyHost}:${ospreyPort}
ospreyHealthURL=${ospreyURL}
ospreyRedirectURL=${ospreyURL}/callback
ospreySecret=YSBzZWNyZXQgdG8gYmUgc2hhcmVkIHdpdGggYWxsIGt1YmVjdGwgY2xpZW50cw==
ospreyDebug=true
ospreyCA=${ospreyRuntime}/osprey-ca.pem
ospreyTlsCert=/osprey/osprey-cert.pem
ospreyTlsKey=/osprey/osprey-key.pem
# DEX properties
dexImage=quay.io/coreos/dex:v2.10.0
dexHost=${node}
dexPort=5556
dexTelemetryPort=5557
dexURL=https://${dexHost}:${dexPort}
dexStorage=/dex/dex.db
dexFrontendDir=/dex/web
dexCA=/dex/dex-ca.pem
dexTlsCert=/dex/dex-cert.pem
dexTlsKey=/dex/dex-key.pem
# Localhost properties
ospreyClientConfig=${ospreyRuntime}/ospreyconfig
clusterClientKubeconfig=${apiserverRuntime}/kubeconfig
# K8s cluster properties
clusterEnvironment=foo.cluster
clusterApiServerURL=https://apiserver.${clusterEnvironment}
clusterApiServerCA=/apiserver/apiserver-ca.pem
clusterKubeconfig=/apiserver/kubeconfig
# Template substitution
# Whenever a property is added to the list above, include the
# substitution pattern in the list below.
while read -r pattern
do
sedScript+="$pattern;"
done <<EOF
s/@node@/${node//\//\\/}/g
s/@ospreyHost@/${ospreyHost//\//\\/}/g
s/@ospreyClientConfig@/${ospreyClientConfig//\//\\/}/g
s/@ospreyPort@/${ospreyPort//\//\\/}/g
s/@ospreyURL@/${ospreyURL//\//\\/}/g
s/@ospreyRedirectURL@/${ospreyRedirectURL//\//\\/}/g
s/@ospreySecret@/${ospreySecret//\//\\/}/g
s/@ospreyDebug@/${ospreyDebug//\//\\/}/g
s/@ospreyCA@/${ospreyCA//\//\\/}/g
s/@ospreyTlsCert@/${ospreyTlsCert//\//\\/}/g
s/@ospreyTlsKey@/${ospreyTlsKey//\//\\/}/g
s/@dexHost@/${dexHost//\//\\/}/g
s/@dexPort@/${dexPort//\//\\/}/g
s/@dexTelemetryPort@/${dexTelemetryPort//\//\\/}/g
s/@dexURL@/${dexURL//\//\\/}/g
s/@dexStorage@/${dexStorage//\//\\/}/g
s/@dexFrontendDir@/${dexFrontendDir//\//\\/}/g
s/@dexCA@/${dexCA//\//\\/}/g
s/@dexTlsCert@/${dexTlsCert//\//\\/}/g
s/@dexTlsKey@/${dexTlsKey//\//\\/}/g
s/@clusterEnvironment@/${clusterEnvironment//\//\\/}/g
s/@clusterApiServerURL@/${clusterApiServerURL//\//\\/}/g
s/@clusterApiServerCA@/${clusterApiServerCA//\//\\/}/g
s/@clusterKubeconfig@/${clusterKubeconfig//\//\\/}/g
s/@clusterClientKubeconfig@/${clusterClientKubeconfig//\//\\/}/g
EOF