Configuration in config files, registry, ... => cleanup

Jan V's Avatar

Jan V

06 Jan, 2017 12:33 PM

Version: 3.latest @ 2017/01/06

I have the following combination of settings on a Tentacle:
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Octopus -> Tentacle.Deployment.ApplicationDirectory :C:\Octopus\Applications

HKEY_LOCAL_MACHINE\SOFTWARE\Octopus\Tentacle\Tentacle -> ConfigurationFilePath : C:\Octopus\Tentacle\Tentacle.config

Config file "C:\Octopus\Tentacle\Tentacle.config":
<set key="Tentacle.Deployment.ApplicationDirectory">E:\Octopus\Applications</set>

What takes precedence? Registry or config file?

  1. Support Staff 1 Posted by Dalmiro Grañas on 06 Jan, 2017 04:42 PM

    Dalmiro Grañas's Avatar

    Hi Jan,

    Thanks for reaching out! The one you should pay attention to is the one on the Config file. Those values you see on the Manager in your screenshot come straight from the config file and not from the registry.

    Octopus only uses the registry for 2 things:

    • Figuring out where the Octopus Server/Tentacle binaries where installed. You can find that on the InstallLocation key.

    • Figuring out where the config file for a specific instance was dropped. This is what the ConfigurationFile key is for.

    I searched in 3 of my Octopus lab instances, and in none of them I could find a key called Tentacle.Deployment.ApplicationDirectory under HKEY_LOCAL_MACHINE\SOFTWARE\Octopus. I'm wondering if perhaps that was created in an (way) older version of Octopus like 2.6 or something like that? In any case, the one that matters is the config file :)

    Hope that helps!
    Dalmiro

  2. 2 Posted by Jan V on 06 Jan, 2017 05:47 PM

    Jan V's Avatar

    Hi,

    Thank you for the clarification.

    I can confirm your hunch about 2.6.
    I upgraded our tentacles from 2.6 to 3.<latest> yesterday and saw remnants of Octopus installations on the C and E drives that made me wonder...

    Greetings,

    Jan

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • octo1.png 5.54 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

20 Jan, 2017 05:23 AM
20 Jan, 2017 04:24 AM
20 Jan, 2017 03:16 AM
20 Jan, 2017 02:36 AM
20 Jan, 2017 02:32 AM