From 9e051abb322c6d19a5a5f6415dee2e552de28c40 Mon Sep 17 00:00:00 2001 From: Jerome Petazzoni Date: Fri, 9 Nov 2018 02:25:00 -0600 Subject: [PATCH] settings for 4 nodes cluster + two-sided card template --- prepare-vms/settings/jerome.yaml | 25 ++++++ prepare-vms/templates/jerome.html | 131 ++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 prepare-vms/settings/jerome.yaml create mode 100644 prepare-vms/templates/jerome.html diff --git a/prepare-vms/settings/jerome.yaml b/prepare-vms/settings/jerome.yaml new file mode 100644 index 00000000..4445f7ca --- /dev/null +++ b/prepare-vms/settings/jerome.yaml @@ -0,0 +1,25 @@ +# Number of VMs per cluster +clustersize: 4 + +# Jinja2 template to use to generate ready-to-cut cards +cards_template: jerome.html + +# Use "Letter" in the US, and "A4" everywhere else +paper_size: Letter + +# Feel free to reduce this if your printer can handle it +paper_margin: 0.2in + +# Note: paper_size and paper_margin only apply to PDF generated with pdfkit. +# If you print (or generate a PDF) using ips.html, they will be ignored. +# (The equivalent parameters must be set from the browser's print dialog.) + +# This can be "test" or "stable" +engine_version: stable + +# These correspond to the version numbers visible on their respective GitHub release pages +compose_version: 1.21.1 +machine_version: 0.14.0 + +# Password used to connect with the "docker user" +docker_user_password: training diff --git a/prepare-vms/templates/jerome.html b/prepare-vms/templates/jerome.html new file mode 100644 index 00000000..34ca7af4 --- /dev/null +++ b/prepare-vms/templates/jerome.html @@ -0,0 +1,131 @@ +{# Feel free to customize or override anything in there! #} +{%- set url = "http://qconsf2018.container.training/" -%} +{%- set pagesize = 9 -%} +{%- if clustersize == 1 -%} + {%- set workshop_name = "Docker workshop" -%} + {%- set cluster_or_machine = "machine" -%} + {%- set this_or_each = "this" -%} + {%- set machine_is_or_machines_are = "machine is" -%} + {%- set image_src = "https://s3-us-west-2.amazonaws.com/www.breadware.com/integrations/docker.png" -%} +{%- else -%} + {%- set workshop_name = "Kubernetes workshop" -%} + {%- set cluster_or_machine = "cluster" -%} + {%- set this_or_each = "each" -%} + {%- set machine_is_or_machines_are = "machines are" -%} + {%- set image_src_swarm = "https://cdn.wp.nginx.com/wp-content/uploads/2016/07/docker-swarm-hero2.png" -%} + {%- set image_src_kube = "https://avatars1.githubusercontent.com/u/13629408" -%} + {%- set image_src = image_src_kube -%} +{%- endif -%} + + + + +{% for cluster in clusters %} +
+ +

+ Here is the connection information to your very own + {{ cluster_or_machine }} for this {{ workshop_name }}. + You can connect to {{ this_or_each }} VM with any SSH client. +

+

+ + + + + + +
login:
docker
password:
{{ docker_user_password }}
+ +

+

+ Your {{ machine_is_or_machines_are }}: + + {% for node in cluster %} + + {% endfor %} +
node{{ loop.index }}:{{ node }}
+

+

You can find the slides at: +

{{ url }}
+

+
+ {% if loop.index%pagesize==0 or loop.last %} + + {% for x in range(pagesize) %} +
+
+

You got this card at the workshop "Getting Started With Kubernetes and Container Orchestration" + during QCON San Francisco (November 2018).

+

That workshop was a 1-day version of a longer curriculum.

+

If you liked that workshop, the instructor (Jérôme Petazzoni) can deliver it + (or the longer version) to your team or organization.

+

You can reach him at:

+

jerome.petazzoni@gmail.com

+

Thank you!

+
+ {% endfor %} + + {% endif %} +{% endfor %} + +