-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use environment-name as parameter in the yaml or json #731
Comments
Hi @heydenb. How would you expect this to behave if no specific-environment is selected? |
Yes, something like that. If no specific env is selected I presume that monaco sequentially walks over all configured envs to push the update. At that moment it knows which env it is processing, right ;-) |
+1 I can see several possible ways to allow this with different pros and cons...
|
Hi @andycarlsonbt, I might be misunderstanding your issue, but I think you're asking for something else than described here. Overwriting variables (or the JSON template that is being used) per environment is a standard feature of monaco. Here are the docs for 2.x: https://www.dynatrace.com/support/help/manage/configuration-as-code/configuration/yaml-configuration#overriding-configuration-per-environment What was asked for here is to use the environment name within configuration, which is not currently possible |
Thanks, I hadn't spotted the section on environment overrides. I'll give that a try. |
Is it possible to use the environment name as variable.
It is passed to monaco via "-s" and described in the environments.yaml
If so, what is the correct notation. I don't find it in the docs.
If not, this would be an interesting feature for us since our monaco envs match the name of the management zones and the environment tag.
The text was updated successfully, but these errors were encountered: