-
Notifications
You must be signed in to change notification settings - Fork 37
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
template sources seem to not get merged, only the last one is used #27
Comments
interestingly, flipping the values to
does work consisten, this means:
Since this behaviour makes sense and is the way you describe the order ( right superseeds left ) the describe issue above is a bug, since
Does work as "exclusively consul, never use file" |
Checking this out now, thanks for the report! |
Hmmm. I'm having some trouble replicating this. Here's an example common.yaml: ---
consul:
url: "http://localhost:8500"
data_sources: [ "defaults" , "file" , "consul" ]
template_sources: [ "file" , "consul" ]
environments:
development:
local.erb:
target: local.txt My Consul is populated with the same test data as used in the fixtures. I then run Tiller:
This appears to be working as intended - my definition for local.erb comes from the file data-source, and is not present anywhere in Consul, so it gets used and picked up from the file template source. If I swap the order, all that happens is that the Consul templates get built first, before my Do you have any other values (target or otherwise) at all for mysql.erb in Consul ? |
remove the consul template, your local template will not be picked up |
@markround sorry, missed that you did not had any consul template. I guess what you should add, eventhough it should not be the cause, is the custom template confuguration. And now, consul is entirely empty during my test, not a single value in there. Add this to your consul block:
|
Hmmm. This is strange. I have now deleted everything from Consul (K/V store is totally empty), My common.yaml now looks like: ---
consul:
url: "http://localhost:8500"
templates: '/configuration/templates/sources'
values:
global: '/configuration/globals/all'
per_env: '/configuration/globals/%e'
template: '/configuration/services/%e/%t'
target: '/configuration/templates/targets/%t/%e'
data_sources: [ "defaults" , "file" , "consul" ]
template_sources: [ "consul" , "file" ]
environments:
development:
local.erb:
target: local.txt And yet....
|
ok, seems like you cannot reproduce it. Let me try to either create a docker image with the test example or try to fiddle out wich detail is the cause for this. thanks for the effort, i report back! it would be great if you could have a look at #26 also |
@markround tried to reproduce - but i could not. It works as desired. I cannot really explain why this is not reproduceable, but it worked out here - so this issue can be closed sorry. #26 is pretty severe though |
closing this for now, until i can reproduce this. Thank you for your effort and sorry |
This is the common.yaml file: https://goo.gl/osCnxs
i have this template present local as file:
Since i added "consul" to the template_sources (plural) the local file /etc/tiller/templates/mysql.erb is no longer even recognised, no matter, if consul has a template of this name or not under configuration/templates/sources/mysql.erb
If i add a consul template, the file gets generated.
I do not get, why several sources are able to get used, but the values are not merged?
The text was updated successfully, but these errors were encountered: