Skip to content

Instantly share code, notes, and snippets.

@PaulStovell
Created September 2, 2014 23:46
Show Gist options
  • Save PaulStovell/fe50ebf25280ccba245c to your computer and use it in GitHub Desktop.
Save PaulStovell/fe50ebf25280ccba245c to your computer and use it in GitHub Desktop.
Configuration SampleConfig
{
param ($ApiKey, $OctopusServerUrl, $Environments, $Roles, $ListenPort)
Import-DscResource -Module OctopusDSC
Node "localhost"
{
cTentacleAgent OctopusTentacle
{
Ensure = "Present";
State = "Started";
# Tentacle instance name. Leave it as 'Tentacle' unless you have more
# than one instance
Name = "Tentacle";
# Registration - all parameters required
ApiKey = $ApiKey;
OctopusServerUrl = $OctopusServerUrl;
Environments = $Environments;
Roles = $Roles;
# Optional settings - for Azure these will always be
ListenPort = $ListenPort;
DefaultApplicationDirectory = "C:\Applications"
}
}
}
SampleConfig -ApiKey "API-ABCDEF12345678910" -OctopusServerUrl "https://demo.octopusdeploy.com/" -Environments @("Development") -Roles @("web-server", "app-server") -ListenPort 10933
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment