Skip to content

Commit

Permalink
Add match attribute to nvidia restrict file_line
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jan 23, 2025
1 parent c725baf commit 4a83d2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions site/profile/manifests/gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
}
file_line { 'nvidia_restrict_profiling':
path => '/etc/modprobe.d/nvidia.conf',
match => '^options nvidia NVreg_RestrictProfilingToAdminUsers',
line => "options nvidia NVreg_RestrictProfilingToAdminUsers=${Integer($restrict_profiling)}",
require => File['/etc/modprobe.d/nvidia.conf'],
notify => [
Expand Down

0 comments on commit 4a83d2e

Please sign in to comment.