Last active
December 23, 2015 16:41
-
-
Save cyberious/cc0aa9e89c631befc89f to your computer and use it in GitHub Desktop.
Windows Environment Setup via Puppet
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
puppet module install chocolatey/chocolatey | |
puppet module install cyberious/pget | |
puppet module install badgerious-windows_env |
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
include chocolatey | |
package { 'ruby': | |
ensure => '2.0.0.59800', | |
provider => 'chocolatey', | |
require => Class['chocolatey'], | |
} | |
package { 'ruby2.devkit': | |
provider => 'chocolatey', | |
require => Package['ruby'], | |
} | |
pget {'AddTrustExternalCARoot-2048.pem': | |
source => 'https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem', | |
target => 'C:\\tools\\ruby200\\lib\\ruby\\2.0.0\\rubygems\\ssl_certs', | |
require => Package['ruby'], | |
} | |
Windows_env{ | |
require => Package['ruby'], | |
} | |
windows_env {'RUBY_GEMS': | |
value => 'C:\\tools\\ruby200\\lib\\ruby\\gems\\2.0.0', | |
} | |
windows_env {'RUBY_HOME': | |
value => 'C:\\tools\\ruby200', | |
} | |
windows_env {'RUBY_HOME_PATH': | |
variable => 'PATH', | |
value => 'C:\\tools\\ruby200\\bin', | |
} | |
windows_env {'RUBY_GEMS_PATH': | |
variable => 'PATH', | |
value => 'C:\\tools\\ruby200\\lib\\ruby\\gems\\2.0.0\\bin', | |
} | |
file_line {'config.yml': | |
path => 'C:/tools/DevKit2/config.yml', | |
line => '- C:/tools/ruby200', | |
} | |
exec {'Ruby devkit': | |
command => 'c:/tools/ruby200/bin/ruby.exe dk.rb install', | |
path => $::path, | |
cwd => 'C:/tools/DevKit2' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment