Created
September 2, 2014 23:46
-
-
Save PaulStovell/fe50ebf25280ccba245c to your computer and use it in GitHub Desktop.
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
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