Hi Team,
We have setup deployment to an offline package drop for one of our environments. After the drop has been performed, and the files have been copied to the server, we have a robocopy script which deploys the offline package from octopus server to shared drive.
Then, we have another batch job which is executed from the deploy server to individual web servers. Instead, of manually executing the ocotpus created batch file which will execute all the deployment steps.
We wanted to run a ps1 script from one web server say from web1 -Invoke command -FilePath “<path_to_drop>/environment/project/release/machineName.project.deploymentId.ps1” remotely to web2,3,4… so on
Note - The above File path does contain all the necessary folder such as Calalmari, Variables, Scripts and bat and ps1 files to execute the deployment.
I created Invoke command ps1 script, to run from one web server and I am getting a below error :
PS F:> cd F:\Robocopy
PS F:\Robocopy> .\DeploymentComponentApiExecutionScript.ps1
The module ‘Calamari’ could not be loaded. For more information, run ‘Import-Module Calamari’.
+ CategoryInfo : ObjectNotFound: (Calamari\Calamari.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoLoadModule
+ PSComputerName : oeuncmsweb2
Do you have any pointers, Will we be able to execute <path_to_drop>/environment/project/release/machineName.project.deploymentId.ps1 script remotely ?
Also, we cannot do tentacle based deployment on PROD due to network and security issues at the moment. Hence, going with offline package drop approach.
Please help me here as this urgent and affecting my timelines to complete the task. Thanks in advance !
Bhavesh