Commit 3e07114a authored by Baptiste Jonglez's avatar Baptiste Jonglez

[big] [puppet] [nvidia] Ensure Puppet fails if nvidia driver installation fails

parent 4dcf4790
......@@ -29,10 +29,14 @@ class env::big::configure_nvidia_gpu::drivers () {
user => root,
require => Package['module-assistant'];
'install_nvidia_driver':
command => "/tmp/NVIDIA-Linux.run -qa --no-cc-version-check --ui=none --dkms -k ${installed_kernelreleases[-1]}; /bin/rm /tmp/NVIDIA-Linux.run",
command => "/tmp/NVIDIA-Linux.run -qa --no-cc-version-check --ui=none --dkms -k ${installed_kernelreleases[-1]}",
timeout => 1200, # 20 min,
user => root,
require => [Exec['prepare_kernel_module_build'], File['/tmp/NVIDIA-Linux.run'], Package['dkms']];
'cleanup_nvidia':
command => "/bin/rm /tmp/NVIDIA-Linux.run",
user => root,
require => Exec['install_nvidia_driver'];
}
file{
'/tmp/NVIDIA-Linux.run':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment