You'll need to run this on the Server in Orgmapper, eg:
/opt/opscode/bin/orgmapper
orgmapper>> eval(::File.read("/path/to/code.rb"))
#!/usr/bin/env ruby -wKU | |
# | |
# by Kelan Champagne | |
# http://yeahrightkeller.com | |
# | |
# A script to generate a personal podcast feed, hosted on Dropbox | |
# | |
# Inspired by http://hints.macworld.com/article.php?story=20100421153627718 | |
# | |
# Simply put this, and some .mp3 or .m4a files in a sub-dir under your Dropbox |
# Orgmapper snippet to output all nodes with client versions in all organizations to a JSON file | |
# To Use: | |
# 1) Start orgmapper | |
# 2) Load the script | |
# eval(::File.read("/path/to/orgmapper_all_client_versions.rb")) | |
# 3) output will be printed to the screen and also written to JSON_OUTPUT_FILE | |
JSON_OUTPUT_FILE = 'chef_versions.json' |
Create the following folder structure in your cookbook:
test
└── integrationq
├── helpers
│ ├── serverspec
│ │ ├── shared_serverspec_tests
│ │ │ └── shared_tests2.rb
│ │ └── spec_helper.rb
launch powershell with admin privileges | |
run: | |
Install-Package -name git -provider chocolatey | |
Install-Package -name chefdk -minimumVersion 0.6.0.1 -provider chocolatey | |
Install-Package -name atom -provider chocolatey | |
Open powershell window as user | |
apm install linter |
# launch powershell with admin privileges | |
# run: | |
# install chocolately | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
# update to WMF 5 & powershell version 5 | |
choco upgrade powershell -pre | |
# reboot machine | |
# launch powershell with admin privileges |
# Logon to Azure ARM | |
$Azure = Get-AzureRmEnvironment 'AzureCloud' | |
$Env = Login-AzureRmAccount -Environment $Azure -Verbose | |
# Select Subscription | |
Select-AzureRmProfile -Profile $Env | |
$Subscription = (Get-AzureRmSubscription | Out-GridView -Title "Choose a Source Subscription ..." -PassThru) | |
# Select Subscription Function | |
Function Subscription { |
Obtaining cipher list from OpenSSL 0.9.8zg 14 July 2015.
Testing ADH-SEED-SHA NO (sslv3 alert handshake failure)
Testing DHE-RSA-SEED-SHA NO (sslv3 alert handshake failure)
Testing DHE-DSS-SEED-SHA NO (sslv3 alert handshake failure)
Testing SEED-SHA NO (sslv3 alert handshake failure)
Testing ADH-AES256-SHA NO (sslv3 alert handshake failure)
Testing DHE-RSA-AES256-SHA YES
Testing DHE-DSS-AES256-SHA NO (sslv3 alert handshake failure)
Testing AES256-SHA NO (sslv3 alert handshake failure)