Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cTentacleAgent add support for proxy servers #125

Open
thebrianlopez opened this issue Apr 11, 2018 · 2 comments
Open

cTentacleAgent add support for proxy servers #125

thebrianlopez opened this issue Apr 11, 2018 · 2 comments

Comments

@thebrianlopez
Copy link

thebrianlopez commented Apr 11, 2018

Team, Great job on this DSC Module !!! Go Octopus !

Use case:

  • When tentacle is deployed to an environment where tentacle cannot directly communicate to the Octopus Server allow use of a proxy server.

Workaround:

  • API already supports ProxyId property. As a workaround we manually perform a POST to the API:
$header = @{ "X-Octopus-ApiKey" = "API-xxx" }

$body = @{ 
      Endpoint = @{
        CommunicationStyle = "TentaclePassive"
        Uri = "$tentacleURL`:$tentaclePort/"
        Thumbprint = $TentacleThumbprint
        ProxyId = $proxyId
      }
      EnvironmentIDs = @($environmentIds)
      MachinePolicyId = $machinePolicyId
      TenantIds = @($tenantIds)
      TenantTags = @($tenantTags)
      Name = $tentacleName
      Roles = @($octopusRole)
      Status = "Unknown"
      IsDisabled = $false
    } | ConvertTo-Json -Depth 10

Invoke-RestMethod "$octopusServerUrl/api/machines" -headers $header -Method Post -Body $body
@thebrianlopez thebrianlopez changed the title cTentacleAgent to support proxy servers cTentacleAgent add support for proxy servers Apr 11, 2018
@matt-richardson
Copy link
Contributor

Hi @thebrianlopez, thanks for the suggestion!
At this point, we're unlikely to be able to tackle this in the near future, especially as you've got a workaround.
That said, we'll happily accept PRs to get functionality in. If you're interested, let me know and I can give you some pointers about how to tackle it.

@yamikuronue
Copy link

I'm curious about what pointers you have :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants