Comments (3)
I believe this can be done by having a different version of your configuration file for git2consul that gets deployed to your machine based on what is your target environment. Tools like Puppet, Chef, etc. can achieve this trivially.
Optionally, you can manipulate the config file dynamically with these tools. If you use Puppet, for example, the env-to-branch mapping can be dynamically set to the configuration file via templates and Puppet variables as documented here.
I don't think setting target branches with env variables is the proper approach here.
from git2consul.
The use-case for this is for a twelve-factor app dockerized git2consul container. When we build the container we copy in our default config.json that is hardcoded to poll our "dev" branch. So when this container gets deployed to a QA environment we would need a way to "override" the branches config value so that an ENV variable could be set when we start the container and git2consul would use as the branches value from ENV instead of the config branches setting.
from git2consul.
Closing this. For further explanation see #79.
from git2consul.
Related Issues (20)
- Java Properties file `+` is removed HOT 5
- Error consul: kv.get: moved permanently HOT 2
- Is a new release planned anytime soon? HOT 10
- git2consul unable to install due to pinkie-promise being unpublished HOT 1
- Git2Consul does not support keys containing '[' and ']' HOT 2
- Git2consul Generates PUT GET every 2 seconds on local agent. Why is that?
- How to configure parameters to use consul with HTTPS? HOT 1
- Problem synchronizing binary files
- git2consul is not converting .json file to KV entry in consul HOT 3
- git2consul problem does not cause Docker container to exit HOT 4
- Project status, new official fork? HOT 6
- Getting [Error: consul: kv.get: connect ECONNREFUSED] HOT 1
- Update of git files trigger unwanted delete of similar key name in consul
- support unix socket?
- files in git not within source_root forcing check_pending to setLastProcessedRef HOT 1
- Files not in source_root are killing my consul API. HOT 1
- support_tags should have option for "true", "false", and "read_once"
- git2consul not importing list in yaml HOT 1
- Git2Consul tool not supported for Google Cloud Run
- Windows - running example sync content of git2consul.json intro Consul KV
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git2consul.