Skip to content

Instantly share code, notes, and snippets.

@erichexter
erichexter / gist:b0cca2ff2e3ab120cec8
Created August 14, 2014 15:28
Install octopus agent using a winRM / remote powershell session
function bootstrap-tentacle{
param($username,$password,$environments,$roles)
$rolestring="@(""" + ($roles -join """,""") + """)"
$environmentstring="@(""" + ($environments -join """,""") + """)"
$command = ". c:\redist\configuremachine.ps1;install-tentacle -environments $environmentstring -roles $rolestring"
$command | set-content c:\installoctopus.ps1
Write-Host "Starting Tentacle install script:"