Hi Support/Octo Users:
We currently install Octopus tentacles via a custom script that adds our tentacle service accounts as a local admin. We are adjusting that per the article below.
However, I am having issues scripting the below permission requirement.
Object: The HKLM\Software\Octopus\Tentacle registry key
Reason: Tentacle determines the location of its configuration files from this key.
Applied with: Regedit
Script (we’ve tried variations of this including setting the location to HKLM):
$RegKey = "HKLM:\SOFTWARE\Octopus\Tentacle" -Force | Select-Object * $acl = Get-Acl -LiteralPath $RegKey $rule = New-Object System.Security.AccessControl.RegistryAccessRule ("<SvcAccount>","ReadKey","ContainerInherit","None","Allow") $acl.SetAccessRule($rule) $acl |Set-Acl -Path $RegKey
Our script primarily fails with the below error:
Cannot find path ‘HKEY_LOCAL_MACHINE\SOFTWARE\Octopus\Tentacle’ because it does not exist.
When I navigate to the HKLM directory, it does not show the Octopus directory.
YET, I do see it when navigating directly to the registry:
We are on Octopus v2020.4.2