Forge Home


Manages NVIDIA proprietary drivers


122 latest version

5.0 quality score

Version information

  • 0.5.8 (latest)
  • 0.5.7
  • 0.5.6
  • 0.5.5
  • 0.5.4
  • 0.5.3
  • 0.5.2
  • 0.5.1
  • 0.5.0
released Aug 4th 2022
This version is compatible with:
  • Puppet Enterprise 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'monkygames-nvidia', '0.5.8'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add monkygames-nvidia
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install monkygames-nvidia --version 0.5.8

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



monkygames/nvidia — version 0.5.8 Aug 4th 2022



Installs the proprietary NVIDIA drivers using the default-graphics PPA. Also can install CUDA if requested.

Cuda Additional Setup

If CUDA was installed, users of CUDA will need to setup their .bashrc file. The following needs to be added to the user's .bashrc file assuming CUDA 11-1 was installed.

# set PATH for cuda 11.1 installation
if [ -d "/usr/local/cuda-11.1/bin/" ]; then
    export PATH=/usr/local/cuda-11.1/bin${PATH:+:${PATH}}
    export LD_LIBRARY_PATH=/usr/local/cuda-11.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

I recommend using the puppetlabs-account module for managing this. Your puppet code can manage /etc/bashrc.puppet with the above (using variables for the cuda-version).

Test the cuda setup with the following command:

nvcc  --version

xorg configuration

This module can manage the xorg configuration file. The configuration will automatically detect all NVIDIA graphics cards and will add them to the xorg configuration as virtual monitors (headless mode). This also enables overclocking settings that can be configured either via command line or through the nvidia settings.

This is very useful for GPUs running in headless mode.

Use the following code to enable xconfig management.

contain nvidia::xconfig


This module provides a script and service for overclocking NVIDIA GPUs. The nvidia::overclock class sets the following GPU settings:

  • Power Limit
  • Core Clock
  • Memory Frequency
  • Fan Speed

Presently, all GPUs configured will use the same settings. If there is interest, the class can be modified to have individual GPU profiles for heterogenous NVIDIA GPU configurations.