diff --git a/prepare-vms/templates/cards-v2.html b/prepare-vms/templates/cards-v2.html new file mode 100644 index 0000000..0d6fa40 --- /dev/null +++ b/prepare-vms/templates/cards-v2.html @@ -0,0 +1,290 @@ +{# + 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("http://FIXME.container.training/") -%} +{%- set pagesize = pagesize + | default(9) -%} +{%- set lang = lang + | default("en") -%} +{%- set event = event + | default("training session") -%} +{%- set backside = backside + | default(False) -%} +{%- set image = image + | default("kube") -%} +{%- set clusternumber = clusternumber + | default(None) -%} +{%- if qrcode == True -%} + {%- set qrcode = "https://container.training/q" -%} +{%- elif qrcode -%} + {%- set qrcode = qrcode -%} +{%- endif -%} + +{# You can also set img_bottom_src instead. #} +{%- set img_logo_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 img_logo_src %} + + {% endif %} + + {% if clusternumber != None %} + + + {% endif %} + + + + +
cluster:
{{ clusternumber + loop.index }}
login:
{{ user_login }}
password:
{{ user_password }}
+ +

+

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

+ +

+ {% if url %} + {{ slides_are_at }} +

+ {{ url }} +

+ {% endif %} + {% if img_bottom_src %} + + {% endif %} +

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

Thanks for attending + "Getting Started With Kubernetes and Container Orchestration" + during CONFERENCE in Month YYYY!

+

If you liked that workshop, + I can train your team, in person or + online, with custom courses of + any length and any level. +

+ {% if qrcode %} +

If you're interested, please scan that QR code to contact me:

+ + {% else %} +

If you're interested, you can contact me at:

+ {% endif %} +

jerome.petazzoni@gmail.com

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