-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.sh
executable file
·63 lines (52 loc) · 1.71 KB
/
configure.sh
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
#!/bin/bash
### Main Variables
export DemoLab_Infra=aws
export DemoLab_SETUP_JENKINS=false
export DemoLab_SETUP_TECTONIC=true
export DemoLab_TECTONIC_Enterprise=true
export DemoLab_SETUP_WEBHOOK=true
export DemoLab_SETUP_COREUPDATE=true
export DemoLab_SETUP_QUAY=false
export DemoLab_Infra_TORUS=false
export DemoLab_RootFolder=$PWD
### Variables for GCP
if [ $DemoLab_Infra="gcp" ]; then
export KUBERNETESFETCH=false
export KUBERNETESLOCATION=$HOME/dev/workspace/kubernetes
export ENABLE_NODE_AUTOSCALER=false
export AUTOSCALER_MAX_NODES=5
export DemoLab_GCP_DNSZone="alekssaul"
fi
### Variables for AWS
if [ $DemoLab_Infra="aws" ]; then
export AWS_CLUSTER_DNS=tectonic.alekssaul.com
export AWS_CLUSTER_name=aleksdemo
export AWS_CLUSTER_region=us-west-1
export AWS_CLUSTER_AZ=us-west-1c
export AWS_CONFIG_controllerinstancetype=m3.medium
export AWS_CONFIG_workerinstancetype=m3.medium
export AWS_CONFIG_workerCount=2
export AWS_DEFAULT_REGION=$AWS_CLUSTER_region
fi
### Variables for Tectonic
if [ $DemoLab_SETUP_TECTONIC="true" ]; then
export TECTONICNAMESPACE=tectonic-system
export TECTONIC_PULL_SECRET=$HOME/Downloads/coreos-pull-secret.yml
fi
### Variables for Webhook
if [ $DemoLab_SETUP_WEBHOOK="true" ]; then
export WEBHOOK_NAMESPACE=webhook
export WEBHOOK_DNS=webhook.$AWS_CLUSTER_DNS
fi
### Variables for Jenkins
if [ $DemoLab_SETUP_JENKINS="true" ]; then
export JENKINSNAMESPACE=jenkins
export JENKINSRESTORE=true
export JENKINSRESTORELOCATION=/tmp/jenkins-home.tar.gz
export JENKINSDISK=jenkins-home
export JENKINSPULLSECRET=$HOME/Downloads/dockercfg
export KUBEMASTER=kubernetes-master
export GCLOUDSTORAGE=asaul-jenkins
export JENKINSBACKUPFILE=jenkins-home.tar.gz
export JENKINSBACKUP=false
fi