This commit is contained in:
17
prepare-vms/deploy-triodos.sh
Executable file
17
prepare-vms/deploy-triodos.sh
Executable file
@@ -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
|
||||
1
prepare-vms/infra/triodos
Normal file
1
prepare-vms/infra/triodos
Normal file
@@ -0,0 +1 @@
|
||||
INFRACLASS=terraform
|
||||
2
prepare-vms/tags/triodos/infra.sh
Normal file
2
prepare-vms/tags/triodos/infra.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
INFRACLASS=generic
|
||||
# This is for manual provisioning. No other variable or configuration is needed.
|
||||
230
prepare-vms/tags/triodos/ips.html
Normal file
230
prepare-vms/tags/triodos/ips.html
Normal file
@@ -0,0 +1,230 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css?family=Slabo+27px');
|
||||
|
||||
|
||||
@page {
|
||||
size: A4; /* Change from the default size of A4 */
|
||||
margin: 0.5cm; /* Set margin on each page */
|
||||
}
|
||||
body {
|
||||
/* this is A4 minus 0.5cm margins */
|
||||
width: 20cm;
|
||||
height: 28.7cm;
|
||||
}
|
||||
|
||||
|
||||
|
||||
body, table {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1em;
|
||||
font-size: 15px;
|
||||
font-family: 'Slabo 27px';
|
||||
}
|
||||
|
||||
table {
|
||||
border-spacing: 0;
|
||||
margin-top: 0.4em;
|
||||
margin-bottom: 0.4em;
|
||||
border-left: 0.8em double grey;
|
||||
padding-left: 0.4em;
|
||||
}
|
||||
|
||||
div {
|
||||
float: left;
|
||||
border: 1px dotted black;
|
||||
|
||||
/* columns * (width+left+right) < 100% */
|
||||
/*
|
||||
width: 24.8%;
|
||||
*/
|
||||
/**/
|
||||
width: 33%;
|
||||
/**/
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.8em;
|
||||
}
|
||||
|
||||
div.back {
|
||||
border: 1px dotted grey;
|
||||
}
|
||||
|
||||
span.scale {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
img.logo {
|
||||
height: 4.5em;
|
||||
float: right;
|
||||
}
|
||||
|
||||
img.bottom {
|
||||
height: 2.5em;
|
||||
display: block;
|
||||
margin: 0.5em auto;
|
||||
}
|
||||
|
||||
.qrcode img {
|
||||
width: 40%;
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.logpass {
|
||||
font-family: monospace;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pagebreak {
|
||||
page-break-after: always;
|
||||
clear: both;
|
||||
display: block;
|
||||
height: 0;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
function qrcodes() {
|
||||
[].forEach.call(
|
||||
document.getElementsByClassName("qrcode"),
|
||||
(e, index) => {
|
||||
new QRCode(e, {
|
||||
text: "",
|
||||
correctLevel: QRCode.CorrectLevel.L
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function scale() {
|
||||
[].forEach.call(
|
||||
document.getElementsByClassName("scale"),
|
||||
(e, index) => {
|
||||
var text_width = e.getBoundingClientRect().width;
|
||||
var box_width = e.parentElement.getBoundingClientRect().width;
|
||||
var percent = 100 * box_width / text_width + "%";
|
||||
e.style.fontSize = percent;
|
||||
}
|
||||
);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="qrcodes(); scale();">
|
||||
|
||||
<div>
|
||||
<p>Here is the connection information to your very own
|
||||
cluster for this training session.
|
||||
You can connect to each VM with any SSH client.</p>
|
||||
<p>
|
||||
|
||||
<img class="logo" src="https://avatars1.githubusercontent.com/u/13629408" />
|
||||
|
||||
<table>
|
||||
|
||||
<tr><td>login:</td></tr>
|
||||
<tr><td class="logpass">docker</td></tr>
|
||||
<tr><td>password:</td></tr>
|
||||
<tr><td class="logpass">training</td></tr>
|
||||
</table>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
Your machines are:
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td>node1:</td>
|
||||
<td>13.73.139.100
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>node2:</td>
|
||||
<td>40.118.16.62
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>node3:</td>
|
||||
<td>13.73.142.68
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
You can find the slides at:
|
||||
<p>
|
||||
<span class="scale">http://FIXME.container.training/</span>
|
||||
</p>
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<p>Here is the connection information to your very own
|
||||
cluster for this training session.
|
||||
You can connect to each VM with any SSH client.</p>
|
||||
<p>
|
||||
|
||||
<img class="logo" src="https://avatars1.githubusercontent.com/u/13629408" />
|
||||
|
||||
<table>
|
||||
|
||||
<tr><td>login:</td></tr>
|
||||
<tr><td class="logpass">docker</td></tr>
|
||||
<tr><td>password:</td></tr>
|
||||
<tr><td class="logpass">training</td></tr>
|
||||
</table>
|
||||
|
||||
</p>
|
||||
<p>
|
||||
Your machines are:
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td>node1:</td>
|
||||
<td>13.73.139.114
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>node2:</td>
|
||||
<td>40.118.23.200
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>node3:</td>
|
||||
<td>13.73.139.70
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
You can find the slides at:
|
||||
<p>
|
||||
<span class="scale">http://FIXME.container.training/</span>
|
||||
</p>
|
||||
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<span class="pagebreak"></span>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
6
prepare-vms/tags/triodos/ips.txt
Normal file
6
prepare-vms/tags/triodos/ips.txt
Normal file
@@ -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
|
||||
31
prepare-vms/tags/triodos/settings.yaml
Normal file
31
prepare-vms/tags/triodos/settings.yaml
Normal file
@@ -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
|
||||
1
prepare-vms/tags/triodos/status
Normal file
1
prepare-vms/tags/triodos/status
Normal file
@@ -0,0 +1 @@
|
||||
user_ok
|
||||
Reference in New Issue
Block a user