Skip to content

Conversation

@NeffIsBack
Copy link
Contributor

@NeffIsBack NeffIsBack commented Apr 26, 2025

Keyboard Layout Option

This Pull Request adds the ability to configure the keyboard layout via the GOAD shell, as well as an arg.
Added cli option: set_keyboard_layout <layout>,<layout2>...
Added arg: goad.py --keyboard_layout <layout>,<layout2>...

The problem is how to get the variables from the python script into the ansible var space. So far i see that three inventory/settings files are loaded where we could place that value:

  • inventory in /ad//data/inventory
  • inventory in the workspace
  • globalsettings.ini

As the globalsettings.ini file would be unclean imho, as this is a place for global variables and not per-lab variables. Therefore (and because of lack of knowledge if there is a better way), i decided to inject it into the workspace inventory file with the config parser. Let me know what is best :)

Disclaimer

So far, the injection of the keyboard_layout was correctly picked up by ansible and configured on my lab. However, although the registry flags were configured to use (in my case) the german keyboard layout, Windows did not switch to that layout. That problem should however be independent to this PR, as this basically only replaces the hard coded variables in the globalsettings.ini.

Screenshots:

image
image
image

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

Successfully merging this pull request may close these issues.

1 participant