-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
How to pass extra options since refactor? #209
Comments
I'm ending up with something like this: file node['wrapper']['config_path'] do
owner node['consul']['service_user']
group node['consul']['service_group']
mode '644'
content lazy { JSON.pretty_generate(node['wrapper']['config_settings'], quirks_mode: true) }
end
consul_service node['consul']['service_name'] do |r|
user node['consul']['service_user']
group node['consul']['service_group']
version node['consul']['version']
config_file node['gz-consul']['config_path']
node['consul']['service'].each_pair { |k, v| r.send(k, v) }
subscribes :restart, %|file[#{node['wrapper']['config_path']}|, :delayed
action [:enable, :start]
end |
I have a quick solution to this in the short term, but we should fix the bugs in the configuration. If there are any additional options added we should check against those. I'll have a change up in a little bit. |
One of the other workaround is to also drop a JSON in
The later |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi @johnbellone
Any clues on how to pass extra options for the agent?
I'm looking at retry_join for example, but not sure how to pass it in a wrapper cookbook, as the resource does not have it (https://github.com/johnbellone/consul-cookbook/blob/master/libraries/consul_config.rb#L69).
Another example is the typo
recurser
in cookbook vs recursor in the config resource. How can I correctly passrecursor
instead ofrecurser
?Would allowing a hash config make more sense instead of duplicating the agent config in the resource?
Thanks in advance
The text was updated successfully, but these errors were encountered: