Skip to content

Instantly share code, notes, and snippets.

@joshcooper
Last active April 9, 2024 17:17
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 joshcooper/9b99aaaba08cf697c475334a305688df to your computer and use it in GitHub Desktop.
Save joshcooper/9b99aaaba08cf697c475334a305688df to your computer and use it in GitHub Desktop.
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install ruby --yes --version=3.1.3.1
choco install msys2 --yes --params "/NoUpdate"
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
Update-SessionEnvironment
ridk install 2 3
ridk enable
gem install --no-document bundler
@joshcooper
Copy link
Author

joshcooper commented Jan 17, 2024

 /opt/puppetlabs/bolt/bin/bolt script run --user Administrator --password '<password>' --targets winrm://ceramic-traitor.delivery.puppetlabs.net --no-ssl-verify install.ps1
  
  ...
  
  installing mingw-w64-ucrt-x86_64-libmangle-git...
  installing mingw-w64-ucrt-x86_64-expat...
  installing mingw-w64-ucrt-x86_64-gettext...
  installing mingw-w64-ucrt-x86_64-make...
  installing mingw-w64-ucrt-x86_64-tools-git...
  installing pkgconf...
  installing mingw-w64-ucrt-x86_64-pkgconf...
  :: Running post-transaction hooks...
  (1/1) Updating the info directory file...
   _____       _           _____           _        _ _         ___  
  |  __ \     | |         |_   _|         | |      | | |       |__ \ 
  | |__) |   _| |__  _   _  | |  _ __  ___| |_ __ _| | | ___ _ __ ) |
  |  _  / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ / 
  | | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | |  __/ | / /_ 
  |_|  \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
                      __/ |           _                              
                     |___/          _|_ _  __   | | o __  _| _     _ 
                                     | (_) |    |^| | | |(_|(_)\^/_> 
  
Fetching bundler-2.5.4.gem
Successfully installed bundler-2.5.4
1 gem installed
Successful on 1 target: winrm://ceramic-traitor.delivery.puppetlabs.net
Ran on 1 target in 2 min, 56 sec

@joshcooper
Copy link
Author

joshcooper commented Jan 17, 2024

When logging in, seems you need to reconfigure chocolatey in order to add chocolatey's bin directory to the $env:PATH

$env:ChocolateyInstall = "C:\ProgramData\chocolatey"
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
Update-SessionEnvironment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment