1.3 KiB
1.3 KiB
profile::nvidia
The purpose of this module is to install the NVIDIA drivers. If
NVIDIA GPU cards are detected with the facter
pci_devices.gpu.nvidia, automatically the
profile::nvidia class will be called. The
class profile::platform is responsible for calling this
profile:
if ( $facts['pci_devices']['gpu']['nvidia'].size > 0 ) {
class { 'profile::nvidia':; }
}
By default the profile only installs the GPU drivers, which can be
disabled setting nvidia::driver::enable to
false.
To enable CUDA installation nvidia::cuda::enable must be
set to true (default is false).
Parameters
| Name | Type | Default |
|---|---|---|
| dgx | boolean | $::productname ? { /^DGX.*/ => true, default => false } |
| driver_enable | boolean | hiera('nvidia::driver::enable', true) |
| cuda_enable | boolean | hiera('nvidia::cuda::enable', true) |
driver_enable ~~~~~~~~~~~~~~~~
Install the Nvidia GPU drivers. By default is true.
cuda_enable
By default is false. Set to true if you
want to install CUDA.