{# The variables below can be customized here directly, or in your settings.yaml file. Any variable in settings.yaml will be exposed in here as well. #} {%- set url = url | default("https://intro-2019-11.container.training") -%} {%- set pagesize = pagesize | default(12) -%} {%- set lang = lang | default("en") -%} {%- set event = event | default("training session") -%} {%- set backside = backside | default(False) -%} {%- set image = image | default("docker") -%} {%- set clusternumber = clusternumber | default(None) -%} {%- set image_src = { "docker": "https://s3-us-west-2.amazonaws.com/www.breadware.com/integrations/docker.png", "swarm": "https://cdn.wp.nginx.com/wp-content/uploads/2016/07/docker-swarm-hero2.png", "kube": "https://avatars1.githubusercontent.com/u/13629408", "enix": "https://enix.io/static/img/logos/logo-domain-cropped.png", }[image] -%} {%- if lang == "en" and clustersize == 1 -%} {%- set intro -%} Here is the connection information to your very own machine for this {{ event }}. You can connect to this VM with any SSH client. {%- endset -%} {%- set listhead -%} Your machine is: {%- endset -%} {%- endif -%} {%- if lang == "en" and clustersize != 1 -%} {%- set intro -%} Here is the connection information to your very own cluster for this {{ event }}. You can connect to each VM with any SSH client. {%- endset -%} {%- set listhead -%} Your machines are: {%- endset -%} {%- endif -%} {%- if lang == "fr" and clustersize == 1 -%} {%- set intro -%} Voici les informations permettant de se connecter à votre machine pour cette formation. Vous pouvez vous connecter à cette machine virtuelle avec n'importe quel client SSH. {%- endset -%} {%- set listhead -%} Adresse IP: {%- endset -%} {%- endif -%} {%- if lang == "en" and clusterprefix != "node" -%} {%- set intro -%} Here is the connection information for the {{ clusterprefix }} environment. {%- endset -%} {%- endif -%} {%- if lang == "fr" and clustersize != 1 -%} {%- set intro -%} Voici les informations permettant de se connecter à votre cluster pour cette formation. Vous pouvez vous connecter à chaque machine virtuelle avec n'importe quel client SSH. {%- endset -%} {%- set listhead -%} Adresses IP: {%- endset -%} {%- endif -%} {%- if lang == "en" -%} {%- set slides_are_at -%} You can find the slides at: {%- endset -%} {%- endif -%} {%- if lang == "fr" -%} {%- set slides_are_at -%} Le support de formation est à l'adresse suivante : {%- endset -%} {%- endif -%} {% for cluster in clusters %}

{{ intro }}

{% if image_src %} {% endif %} {% if clusternumber != None %} {% endif %}
cluster:
{{ clusternumber + loop.index }}
login:
docker
password:
{{ docker_user_password }}

{{ listhead }} {% for node in cluster %} {% endfor %}
{{ clusterprefix }}{{ loop.index }}: {{ node }}

{% if url %} {{ slides_are_at }}

{{ url }}
{% endif %}

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

You got this at the workshop "Getting Started With Kubernetes and Container Orchestration" during QCON London (March 2019).

If you liked that workshop, I can train your team or organization on Docker, container, and Kubernetes, with curriculums of 1 to 5 days.

Interested? Contact me at:

jerome.petazzoni@gmail.com

Thank you!

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