Skip to content

Commit

Permalink
Added sample configuration for custom comms port
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaSOps authored and matt-richardson committed Oct 20, 2017
1 parent bf6c4e9 commit 06d9993
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions OctopusDSC/Examples/cTentacleAgent_ListeningTentacle.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,41 @@ Configuration SampleConfig
}
}
}

Configuration SampleConfigWithCustomCommsPort
{
param ($ApiKey, $OctopusServerUrl, $Environments, $Roles, $TentacleCommsPort)

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

# How Tentacle will communicate with the server
CommunicationMode = "Listen"
ListenPort = 10933
#The call back port is different from the listen port. e.g the tentacle is behind a loadbalancer
TentacleCommsPort = $TentacleCommsPort

# Where deployed applications will be installed by Octopus
DefaultApplicationDirectory = "C:\Applications"

# Where Octopus should store its working files, logs, packages etc
TentacleHomeDirectory = "C:\Octopus"
}
}
}

0 comments on commit 06d9993

Please sign in to comment.