diff --git a/roles/gpu/tasks/main.yml b/roles/gpu/tasks/main.yml index f4b2d0585e8a750ebc4e9b1473dfea3f985a97fb..46b8a0a92236f83ab8cd890d55a2796d94ab2a8b 100644 --- a/roles/gpu/tasks/main.yml +++ b/roles/gpu/tasks/main.yml @@ -141,3 +141,9 @@ become_user: root args: creates: /etc/X11/xorg.conf + +- name: Template xorg.conf for nodes with one GPU + template: src=xorg.conf.j2 dest=/etc/X11/xorg.conf + become: true + become_user: root + when: template_xorgconf is defined and template_xorgconf diff --git a/roles/gpu/templates/xorg.conf.j2 b/roles/gpu/templates/xorg.conf.j2 index b6df768fe69c46466f2f8e51c52279746df7f067..8af638596e7935b4e750cafa2e8e7079d556f071 100644 --- a/roles/gpu/templates/xorg.conf.j2 +++ b/roles/gpu/templates/xorg.conf.j2 @@ -1,9 +1,5 @@ # nvidia-xconfig: X configuration file generated by nvidia-xconfig -# nvidia-xconfig: version 340.58 (buildmeister@swio-display-x86-rhel47-09) Fri Oct 31 17:40:05 PDT 2014 -Section "DRI" - Mode 0660 - Group "vglusers" -EndSection +# nvidia-xconfig: version 352.93 (buildmeister@swio-display-x86-rhel47-07) Tue Apr 5 18:55:28 PDT 2016 Section "ServerLayout" Identifier "Layout0" @@ -27,11 +23,9 @@ Section "InputDevice" EndSection Section "InputDevice" - # generated from data in "/etc/sysconfig/keyboard" + # generated from default Identifier "Keyboard0" Driver "kbd" - Option "XkbLayout" "us" - Option "XkbModel" "pc105" EndSection Section "Monitor" @@ -47,7 +41,8 @@ Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" - BusID "PCI:00:06:0" + BoardName "GRID K1" + BusID "PCI:0:6:0" EndSection Section "Screen" @@ -55,6 +50,7 @@ Section "Screen" Device "Device0" Monitor "Monitor0" DefaultDepth 24 + Option "UseDisplayDevice" "none" SubSection "Display" Depth 24 EndSubSection