Passing different values in variables for each tentacle

Hi,

I want to run a script on multiple VMs/tentacles. This script requires the credential to run and every VM has different creds. So my question is how can I pass this value in a variable so that it is changed for every tentacle. Right now, I am running the script one tentacle at a time by changing the value of creds variable everytime but it’s a tedious thing to do.
Any suggestions?

Hi,

Thanks for getting in touch! Variables can be scoped to individual deployment targets, which allows you to use different values when deploying to different targets. If you create multiple variables with the same name, but different value and scope, the same variable name will have different values based on where you’re deploying to. You can read more about scoping variables in the following documentation page. :slight_smile:
https://octopus.com/docs/deploying-applications/variables/scoping-variables

Let me know how you go, and don’t hesitate to reach out if you have any further questions!

Best regards,

Kenny