diff --git a/docs/set-variables-group-vars.md b/docs/set-variables-group-vars.md index dd655592..d3edfc15 100644 --- a/docs/set-variables-group-vars.md +++ b/docs/set-variables-group-vars.md @@ -160,6 +160,7 @@ :--- | :--- | :--- **env.language** | What language would you like Red Hat Enterprise Linux to use? In UTF-8 language code.
Available languages and their corresponding codes can be found [here](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html-single/international_language_support_guide/index), in the "Locale" column of Table 2.1. | en_US.UTF-8 **env.timezone** | Which timezone would you like Red Hat Enterprise Linux to use? A list of available timezone
options can be found [here](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). | America/New_York +**env.keyboard** | Which keyboard layout would you like Red Hat Enterprise Linux to use? | us **env.ansible_key_name** | (Optional) Name of the SSH key that Ansible will use to connect to hosts. | ansible-ocpz **env.ocp_key_name** | Comment to describe the SSH key used for OCP. Arbitrary value. | OCPZ-01 key **env.bridge_name** | (Optional) Name of the macvtap bridge that will be created on the KVM host or in case of NAT the name of the NAT network defenition (usually it is 'default'). If NAT is being used and a jumphost is needed, the parameters network_mode, jumphost.name, jumphost.user and jumphost.pass must be specified, too. In case of default (NAT) network verify that the configured IP ranges does not interfere with the IPs defined for the controle and compute nodes. Modify the default network (dhcp range setting) to prevent issues with VMs using dhcp and OCP nodes having fixed IPs.| macvtap-net diff --git a/inventories/default/group_vars/all.yaml.template b/inventories/default/group_vars/all.yaml.template index 1d57e2e6..22f4488d 100644 --- a/inventories/default/group_vars/all.yaml.template +++ b/inventories/default/group_vars/all.yaml.template @@ -185,6 +185,7 @@ env: # Section 14 - (Optional) Misc language: en_US.UTF-8 timezone: America/New_York + keyboard: us root_access: false ansible_key_name: ansible-ocpz ocp_ssh_key_comment: OpenShift key diff --git a/roles/create_bastion/templates/bastion-ks.cfg.j2 b/roles/create_bastion/templates/bastion-ks.cfg.j2 index 9b0a6bb0..64e265fa 100644 --- a/roles/create_bastion/templates/bastion-ks.cfg.j2 +++ b/roles/create_bastion/templates/bastion-ks.cfg.j2 @@ -21,7 +21,7 @@ repo --install --name="AppStream" --baseurl={{ env.file_server.protocol }}://{{ repo --install --name="BaseOS" --baseurl={{ env.file_server.protocol }}://{{ env.file_server.user + ':' + env.file_server.pass + '@' if env.file_server.protocol == 'ftp' else '' }}{{ env.file_server.ip }}/{{ env.file_server.iso_mount_dir }}/BaseOS/ # Keyboard layouts -keyboard --vckeymap=us --xlayouts='us' +keyboard --vckeymap={{ env.keyboard }} --xlayouts='{{ env.keyboard }}' # System language lang {{ env.language }}