asgard
asgard copied to clipboard
Environment variables should be configurable
At several places in Asgard there are hard coded assumptions about what environment variables are available (countries, dev phase, partners etc.). These variables make sense for Netflix, but not for other users of Asgard. They should be configurable instead, for example in config.groovy.
:+1:
I have the same need. The Netflix env variables mean nothing for me. I don't feel comfortable to use a PARTNER
as a DATABASE_URL
.
If I was able to configure the user data
directly in the AutoScaling Group, e.g. in a textarea instead of a UserDataProvider class would be perfect. FTW
I think all those funny hard-coded environment variables are not even really used at Netflix. It's a bunch of old legacy stuff and there are better ways of doing that.
I wonder if there could be a way to disable them entirely in the non-Netflix version of the code?
If that is true then we should disable them even for Netflix. Can you give some specific examples?
I'm referring to the Countries, Dev phase, Hardware devices, Partners and Revision encoded variables. From what I recall, those were an attempt to encode the groupings that some particular teams used in their clusters. What ended up being much more general and supported was the simple Stack notion. Are any of those other variables still used?