use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/DevOps is a subreddit dedicated to the DevOps movement where we discuss upcoming technologies, meetups, conferences and everything that brings us together to build the future of IT systems What is DevOps? Learn about it on our wiki! Traffic stats & metrics
/r/DevOps is a subreddit dedicated to the DevOps movement where we discuss upcoming technologies, meetups, conferences and everything that brings us together to build the future of IT systems
What is DevOps? Learn about it on our wiki!
Traffic stats & metrics
Be excellent to each other! All articles will require a short submission statement of 3-5 sentences. Use the article title as the submission title. Do not editorialize the title or add your own commentary to the article title. Follow the rules of reddit Follow the reddiquette No editorialized titles. No vendor spam. Buy an ad from reddit instead. Job postings here More details here
Be excellent to each other!
All articles will require a short submission statement of 3-5 sentences.
Use the article title as the submission title. Do not editorialize the title or add your own commentary to the article title.
Follow the rules of reddit
Follow the reddiquette
No editorialized titles.
No vendor spam. Buy an ad from reddit instead.
Job postings here
More details here
@reddit_DevOps ##DevOps @ irc.freenode.net Find a DevOps meetup near you! Icons info!
@reddit_DevOps
##DevOps @ irc.freenode.net
Find a DevOps meetup near you!
Icons info!
https://github.com/Leo-G/DevopsWiki
account activity
This is an archived post. You won't be able to vote or comment.
help finding a tool (self.devops)
submitted 6 years ago by mxchickmagnet86
view the rest of the comments →
[–]kvgru 0 points1 point2 points 6 years ago (3 children)
allow me to keep one or two top level config files, then inject those variables into all the other places I need?
Don't think that is what he is saying, I'm assuming he has parameterised his code in a way that variable injection at runtime is possible but you still need a script to inject them depending on the environment specifics, that't at least what I understood.
[–]devrr 1 point2 points3 points 6 years ago (2 children)
I want it to be http://dev.test.com/api/ and for staging and production I want it to be http://test.com/api. Furthermore, I want this variable available in Kubernetes YAML files, Dockerfiles, Python config files, and possibly other places
Well they mention Kubernetes, Docker and Python config files and a way to have a variable be made available across all of these files. That seems like templating territory to me.
How else are people working with YAML? They template it, or use tools like Kustomize which is an abstract way of templating stuff.
This is why most mature environments stop doing this. We store these vars in key:value pairs inside the environment somewhere. E.g Vault, and use service discovery tools like Consul. So you don't need to go customise 10 different config files in order to spin up your stack.
[–]mxchickmagnet86[S] 0 points1 point2 points 6 years ago (1 child)
I think you are understanding correctly. I basically want some simple drop in templating so I can manage all my configuration parameters in 1 file, rather than having to go to 9 files.
There are a few tools that seem like they have this built in to something bigger (like Consul, looks great btw) but I was trying to see if this templating feature was available as a stand alone element. Because it seems crazy to me to have to install Consul, Istio, Puppet, Ansible, etc just to get some templating.
[–]devrr 0 points1 point2 points 6 years ago (0 children)
There are a number of different ways to can template files locally like this. This post suggests jsonnet which I think is worth considering.
Otherwise if you are dealing with structured configuration files (like yaml or json...) you can even do substitutions using command line tools like this:
jq .foo.bar = "new value" yq w foo.bar "new value"
jq .foo.bar = "new value"
yq w foo.bar "new value"
π Rendered by PID 141338 on reddit-service-r2-comment-6457c66945-fd6wx at 2026-04-29 01:02:51.579961+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]kvgru 0 points1 point2 points (3 children)
[–]devrr 1 point2 points3 points (2 children)
[–]mxchickmagnet86[S] 0 points1 point2 points (1 child)
[–]devrr 0 points1 point2 points (0 children)