Skip to content

Instantly share code, notes, and snippets.

@AutomationD
Created January 7, 2015 17:35
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 AutomationD/60cab2dec3327bcc36bf to your computer and use it in GitHub Desktop.
Save AutomationD/60cab2dec3327bcc36bf to your computer and use it in GitHub Desktop.
Choco management
exec { "install-chocolatey":
creates => 'C:\Programdata\Chocolatey',
command => 'iex ((new-object net.webclient).DownloadString(\'http://chocolatey.org/install.ps1\'))',
require => Class["packages::dotnetall"],
provider => powershell,
}
windows_env {'ChocolateyInstall':
ensure => present,
mergemode => clobber,
value => 'C:\Programdata\Chocolatey',
notify => Service['puppet'], #restart service after environment update
}
windows_env {'PATH':
ensure => absent,
mergemode => insert,
value => 'C:\Chocolatey\bin',
notify => Service['puppet'], #restart service after environment update
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment