-
Notifications
You must be signed in to change notification settings - Fork 3
Added a few checks on deployment for Windows VMs #51
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,15 @@ | ||
| # This YAML file defines all machines that Ansible needs to know about to run playbooks and configure machines. | ||
| all: | ||
| hosts: | ||
| hosts:{% if not data.is_windows %} | ||
| # The following line defines how this machine will be referred to in Ansible scripts. | ||
| {{ data.name }}: | ||
| # This one tells Ansible that this host is reached using incus, and the name of the machine in incus is `{{ data.name }}`. | ||
| ansible_incus_host: {{ data.name }} | ||
| {% else %} | ||
| # If you also need Linux containers, add them here. | ||
| # linux-incus-container: | ||
| # ansible_incus_host: linux-incus-container | ||
| {% endif %} | ||
| # You can set variables here to use in your Ansible playbooks. For example, you can set the flags here to set them dynamically when setting up the challenge. | ||
| vars: | ||
| # Do not change these. | ||
|
|
@@ -24,4 +29,16 @@ build: | |
| build-container: | ||
| # The name must be the same as the previous line. | ||
| ansible_incus_host: build-container | ||
| {% endif %}{% if data.is_windows %} | ||
| # This section is needed if you need Windows virtual machines. It's a group of hosts regrouped under the name "windows" which MUST remain the same. | ||
| # The group "windows" is removed from the "cleanup.yaml" and "common.yaml", which is why you should not change it. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pas sûr de comprendre cette ligne. le groupe
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Je les ai enlevé sur mon instance local de ctf. Mais j'ai oublié de l'enlever des fichiers templates, ouch. Good catch.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. C'est fait. |
||
| windows: | ||
| hosts: | ||
| # The following line defines how this machine will be referred to in Ansible scripts. | ||
| {{ data.name }}: | ||
| # This one tells Ansible that this host is reached using incus, and the name of the machine in incus is `{{ data.name }}`. | ||
| ansible_incus_host: {{ data.name }} | ||
| vars: | ||
| # This variable is used to tell Ansible that the hosts are Windows hosts and require a PowerShell shell. | ||
| ansible_shell_type: powershell | ||
| {% endif %} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça serait mieux d'utiliser https://rich.readthedocs.io/en/latest/progress.html à la place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas certain de comprendre comment utiliser progress, surtout dans ce contexte. Penses-tu pouvoir t'en occuper?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je sais pas comment utiliser ça. Quel nom d'image windows je peux utiliser?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu dois créer ta propre image avec incus-windows par antifob, voir le README.