Can Octopus Deploy be configured to run vlt command line tool on deployment target

usability
(Sukkilavani23) #1

Hi, We are using filevault tool to copy content from our prod to lower env. Trying to configure the same in octopus deploy to automate the process. But not able to run the vlt commands. Getting the below error.
The term ‘vlt’ is not recognized as the name of a cmdlet, function,

July 30th 2019 13:00:37
Error
script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At C:\Octopus\Work\20190730073033-17848-203\Script.ps1:3 char:1

Any help would be appreciated.

(Daniel Fischer) #3

Hi @sukkilavani23,

Thanks for getting in touch! It looks like the powershell session created by Octopus (Using the account running the Octopus service where the script is executed) does not have the vlt cmdlet loaded.

You may need to add an environmental variable to the account running the service so it is able to load the cmdlet.

I did some searching for vlt and found what looks to be what you are using. I can see in the instructions that it mentions the following:

Add <archive-dir>/vault-cli-<version>/bin to your environment PATH so that the command files vlt or vlt.bat are accessed as appropriate.

Hope this helps!

If you have any trouble here, please don’t hesitate to let me know.

Best regards,
Daniel