Skip to content

Instantly share code, notes, and snippets.

@rafalf
Created May 20, 2014 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafalf/b9b4de51b64072c31c94 to your computer and use it in GitHub Desktop.
Save rafalf/b9b4de51b64072c31c94 to your computer and use it in GitHub Desktop.
puppet: install OS packages
class install_utilities {
package { 'install python':
ensure => '2.7.2.5',
source => 'C:\Prepfolder\3rdParty\Python\ActivePython-2.7.2.5-win64-x64.msi',
install_options => ['/quiet']
}
package { 'install notepad':
ensure => '6.2.2',
source => 'C:\AmazonEnvPrep-v2012\3rdParty\Notepad++\npp.6.2.2.Installer.exe',
install_options => ['/S']
}
# ......
exec { 'install boto':
command => 'Start-Process -Wait -FilePath C:\Python27\Scripts\pip.exe -ArgumentList {install boto}',
provider => powershell,
logoutput => true,
require => Package['install python'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment