From cfb0a08cae28e2f75d6ddbbb34f3a2f86148d0ef Mon Sep 17 00:00:00 2001 From: Marco Verleun Date: Sat, 31 Dec 2022 19:09:36 +0100 Subject: [PATCH] Config for Triodos --- prepare-vms/deploy-triodos.sh | 17 ++ prepare-vms/infra/triodos | 1 + prepare-vms/tags/triodos/infra.sh | 2 + prepare-vms/tags/triodos/ips.html | 230 +++++++++++++++++++++++++ prepare-vms/tags/triodos/ips.txt | 6 + prepare-vms/tags/triodos/settings.yaml | 31 ++++ prepare-vms/tags/triodos/status | 1 + 7 files changed, 288 insertions(+) create mode 100755 prepare-vms/deploy-triodos.sh create mode 100644 prepare-vms/infra/triodos create mode 100644 prepare-vms/tags/triodos/infra.sh create mode 100644 prepare-vms/tags/triodos/ips.html create mode 100644 prepare-vms/tags/triodos/ips.txt create mode 100644 prepare-vms/tags/triodos/settings.yaml create mode 100644 prepare-vms/tags/triodos/status diff --git a/prepare-vms/deploy-triodos.sh b/prepare-vms/deploy-triodos.sh new file mode 100755 index 0000000..84773d4 --- /dev/null +++ b/prepare-vms/deploy-triodos.sh @@ -0,0 +1,17 @@ +# Create a group that bundles all +#az group create --name workshop-rg --location westeurope + +az group deployment create --resource-group workshop-rg --template-file azuredeploy.json --parameters @azuredeploy.parameters.json + +az vm list-ip-addresses --resource-group workshop-rg --output json | jq -r '.[].virtualMachine.network.publicIpAddresses[].ipAddress' > tags/triodos/ips.txt + +./workshopctl clusterize triodos +./workshopctl tools triodos +./workshopctl docker triodos +./workshopctl createuser triodos +./workshopctl webssh triodos +./workshopctl wait triodos +./workshopctl tailhisttriodos +./workshopctl tailhist triodos +./workshopctl cards triodos +./workshopctl ips triodos diff --git a/prepare-vms/infra/triodos b/prepare-vms/infra/triodos new file mode 100644 index 0000000..58f5506 --- /dev/null +++ b/prepare-vms/infra/triodos @@ -0,0 +1 @@ +INFRACLASS=terraform diff --git a/prepare-vms/tags/triodos/infra.sh b/prepare-vms/tags/triodos/infra.sh new file mode 100644 index 0000000..5846a89 --- /dev/null +++ b/prepare-vms/tags/triodos/infra.sh @@ -0,0 +1,2 @@ +INFRACLASS=generic +# This is for manual provisioning. No other variable or configuration is needed. diff --git a/prepare-vms/tags/triodos/ips.html b/prepare-vms/tags/triodos/ips.html new file mode 100644 index 0000000..5e409da --- /dev/null +++ b/prepare-vms/tags/triodos/ips.html @@ -0,0 +1,230 @@ + + + + + + + + + +
+

Here is the connection information to your very own + cluster for this training session. + You can connect to each VM with any SSH client.

+

+ + + + + + + + + +
login:
docker
password:
training
+ +

+

+ Your machines are: + + + + + + + + + + + + + + + + + +
node1:13.73.139.100 +
node2:40.118.16.62 +
node3:13.73.142.68 +
+

+ +

+ + You can find the slides at: +

+ http://FIXME.container.training/ +

+ + +

+
+ + +
+

Here is the connection information to your very own + cluster for this training session. + You can connect to each VM with any SSH client.

+

+ + + + + + + + + +
login:
docker
password:
training
+ +

+

+ Your machines are: + + + + + + + + + + + + + + + + + +
node1:13.73.139.114 +
node2:40.118.23.200 +
node3:13.73.139.70 +
+

+ +

+ + You can find the slides at: +

+ http://FIXME.container.training/ +

+ + +

+
+ + + + + + + \ No newline at end of file diff --git a/prepare-vms/tags/triodos/ips.txt b/prepare-vms/tags/triodos/ips.txt new file mode 100644 index 0000000..7761263 --- /dev/null +++ b/prepare-vms/tags/triodos/ips.txt @@ -0,0 +1,6 @@ +13.73.139.100 +40.118.16.62 +13.73.142.68 +13.73.139.114 +40.118.23.200 +13.73.139.70 diff --git a/prepare-vms/tags/triodos/settings.yaml b/prepare-vms/tags/triodos/settings.yaml new file mode 100644 index 0000000..17b6123 --- /dev/null +++ b/prepare-vms/tags/triodos/settings.yaml @@ -0,0 +1,31 @@ +# customize your cluster size, your cards template, and the versions + +# Number of VMs per cluster +clustersize: 3 + +# The hostname of each node will be clusterprefix + a number +clusterprefix: node + +# Jinja2 template to use to generate ready-to-cut cards +cards_template: cards.html + +# Use "Letter" in the US, and "A4" everywhere else +paper_size: A4 + +# Login and password that students will use +user_login: docker +user_password: training + +steps: + - wait + - clusterize + - tools + - docker + - createuser + - webssh + - tailhist + - kube + - kubetools + - kubetest + - cards + - ips diff --git a/prepare-vms/tags/triodos/status b/prepare-vms/tags/triodos/status new file mode 100644 index 0000000..eb8d542 --- /dev/null +++ b/prepare-vms/tags/triodos/status @@ -0,0 +1 @@ +user_ok