Examples/cTentacleAgent_ListeningTentacle.psm1
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 # How Tentacle will communicate with the server CommunicationMode = "Listen" ListenPort = $ListenPort # Where deployed applications will be installed by Octopus DefaultApplicationDirectory = "C:\Applications" # Where Octopus should store its working files, logs, packages etc TentacleHomeDirectory = "C:\Octopus" } } } 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" } } } |