OctopusDeploy / OctopusDSC

| Public | A PowerShell DSC resource for installing Octopus Deploy & Tentacles
Other
1 stars 60 forks source link

cTentacleAgent add support for proxy servers #125

Open thebrianlopez opened 6 years ago

thebrianlopez commented 6 years ago

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

Use case:

Workaround:


$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
matt-richardson commented 6 years ago

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 commented 6 years ago

I'm curious about what pointers you have :)