Created
January 7, 2015 17:35
-
-
Save AutomationD/60cab2dec3327bcc36bf to your computer and use it in GitHub Desktop.
Choco management
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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