Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
Last active September 16, 2016 16:54
Show Gist options
  • Save rockpapergoat/c1d96dfc48b7848b4a31ec8a2ea5d0cf to your computer and use it in GitHub Desktop.
Save rockpapergoat/c1d96dfc48b7848b4a31ec8a2ea5d0cf to your computer and use it in GitHub Desktop.
---
cuda::install::cuda_pkgs:
'cuda-6.0':
ensure: 'absent'
'cuda-7.5':
ensure: 'present'
class cuda::install (
$cuda_pkgs,
){
if empty($cuda_pkgs) {
fail('please define list of cuda pkgs')
}
include cuda::repo
ensure_packages($cuda_pkgs)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment