forked from inovex/lfs458-course-prep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve mail script with jinja2 template and wetty passwords.
- Loading branch information
Showing
5 changed files
with
126 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
sender: [email protected] | ||
subject: "LFS458 Course" | ||
sender_email: [email protected] | ||
sender_name: TRAINER | ||
subject: "Kubernetes Administration Training Zugangsdaten" | ||
# Comment out if not configured. | ||
wetty_host: wetty-TRAINER.training-lf-kubernetes.fra.ics.inovex.io | ||
attendees: | ||
- Surname: Mustermann | ||
Mail: [email protected] | ||
Short: mmustermann | ||
- name: Max | ||
email: [email protected] | ||
short: mmustermann |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
Hello {Surname}, | ||
Hallo {{name}}! | ||
|
||
foo bar ! | ||
Im Anhang erhältst du ein Zip-Archiv mit den Zugangsdaten zu deiner Trainingsumgebung. | ||
Nach dem Entpacken findest du folgende Dateien: | ||
|
||
* ips/{{short}}.txt enthält die Namen und IP-Adressen der Trainings-VMs. | ||
* keys/{{short}} ist dein privater SSH-Schlüssel im PEM-Format. | ||
* keys/{{short}}.ppk ist der selbe Schlüssel im PuTTY-Format. | ||
|
||
Du kannst dich zum Testen gerne schon mit den VMs verbinden, nimm aber bitte noch keine Änderungen vor. | ||
|
||
ssh -i keys/{{short}} student@IP-ADRESSE-AUS-TXT | ||
{%-if wetty_host is defined %} | ||
|
||
Solltest es mit der SSH-Verbindung nicht klappen, kannst du dich auch über ein Web-Terminal verbinden. | ||
Benutze dazu bitte den folgenden Link. Du wirst dort zwar eine Liste mit allen VMs sehen, kannst aber nur auf deine zugreifen. | ||
|
||
https://{{short}}:{{wetty_password}}@{{wetty_host}}/ | ||
{%- endif %} | ||
|
||
Wir sehen uns dann zum Training! | ||
|
||
Viele Grüße, | ||
{{sender_name}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
# direct dependencies | ||
google-api-python-client==2.3.0 | ||
google-auth-oauthlib==0.4.4 | ||
pylint==2.8.2 | ||
PyYAML==5.4.1 | ||
google-api-python-client==2.57.0 | ||
google-auth-oauthlib==0.5.2 | ||
pylint==2.14.5 | ||
PyYAML==6.0 | ||
Jinja2==3.1.2 | ||
# indirect dependencies | ||
astroid==2.5.6 | ||
cachetools==4.2.2 | ||
certifi==2020.12.5 | ||
chardet==4.0.0 | ||
google-api-core==1.26.3 | ||
google-auth==1.30.0 | ||
astroid==2.11.7 | ||
cachetools==5.2.0 | ||
certifi==2022.6.15 | ||
charset-normalizer==2.1.1 | ||
dill==0.3.5.1 | ||
google-api-core==2.8.2 | ||
google-auth==2.11.0 | ||
google-auth-httplib2==0.1.0 | ||
googleapis-common-protos==1.53.0 | ||
httplib2==0.19.1 | ||
idna==2.10 | ||
isort==5.8.0 | ||
lazy-object-proxy==1.6.0 | ||
mccabe==0.6.1 | ||
oauthlib==3.1.0 | ||
packaging==20.9 | ||
pip==21.1 | ||
protobuf==3.18.3 | ||
googleapis-common-protos==1.56.4 | ||
httplib2==0.20.4 | ||
idna==3.3 | ||
isort==5.10.1 | ||
lazy-object-proxy==1.7.1 | ||
MarkupSafe==2.1.1 | ||
mccabe==0.7.0 | ||
oauthlib==3.2.0 | ||
platformdirs==2.5.2 | ||
protobuf==4.21.5 | ||
pyasn1==0.4.8 | ||
pyasn1-modules==0.2.8 | ||
pyparsing==2.4.7 | ||
pytz==2021.1 | ||
requests==2.25.1 | ||
requests-oauthlib==1.3.0 | ||
rsa==4.7.2 | ||
setuptools==47.1.0 | ||
six==1.15.0 | ||
toml==0.10.2 | ||
uritemplate==3.0.1 | ||
urllib3==1.26.5 | ||
wrapt==1.12.1 | ||
pyparsing==3.0.9 | ||
requests==2.28.1 | ||
requests-oauthlib==1.3.1 | ||
rsa==4.9 | ||
six==1.16.0 | ||
tomli==2.0.1 | ||
tomlkit==0.11.4 | ||
uritemplate==4.1.1 | ||
urllib3==1.26.11 | ||
wrapt==1.14.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters