Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README #3

Open
awattez opened this issue Jan 9, 2021 · 2 comments
Open

Improve README #3

awattez opened this issue Jan 9, 2021 · 2 comments

Comments

@awattez
Copy link
Contributor

awattez commented Jan 9, 2021

  • Expliquer la manière et comment utiliser les scripts présents dans ce repo Git.
  • Expliquer où sont les logs d'execution des scripts d'initialisation (/var/log/cloud-init.log et /var/log/cloud-init-output.log)
@awattez
Copy link
Contributor Author

awattez commented Jan 9, 2021

En observant le workshop kafka, je trouve l'idée interessante de clone le repo et d'executer directement les scripts du repo dans l'initialisation pour éviter les multiples copier/coller à travers les formations strigo.
Exemple:

#!/bin/bash

cd /home/ubuntu/ && git clone https://github.com/Zenika/strigo-init-script-libs

cd /home/ubuntu/strigo-init-script-libs/ubuntu && chmod +x ./code-server.sh && ./code-server.sh
cd /home/ubuntu/strigo-init-script-libs/ubuntu && chmod +x ./docker.sh && ./docker.sh

@zigarn
Copy link
Contributor

zigarn commented Jan 21, 2021

C'est une bonne idée.

Cependant les {{ .STRIGO_* }} ne peuvent fonctionner que dans le cloud-init posé dans Strigo.
Il faudrait du coup les transformer en variables d'environnement dans un script wrapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants