Skip to content

Instantly share code, notes, and snippets.

@rockpapergoat
Created March 28, 2016 19:25
Show Gist options
  • Save rockpapergoat/5ffcd11833fe8812c150 to your computer and use it in GitHub Desktop.
Save rockpapergoat/5ffcd11833fe8812c150 to your computer and use it in GitHub Desktop.
file { '/scratch/cuda-7.5':
ensure => directory,
}
package { 'cuda-7-5':
ensure => installed,
provider => 'yum',
install_options => [{'--installroot' => '/scratch/cuda-7.5'}],
require => File['/scratch/cuda-7.5'],
}
file { '/usr/local/cuda-7.5':
ensure => link,
target => '/scratch/cuda-7.5',
require => [Package['cuda-7-5'],File['/scratch/cuda-7.5']],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment