sous-chefs / consul

Development repository for the consul cookbook
https://supermarket.chef.io/cookbooks/consul
Apache License 2.0
192 stars 244 forks source link

Be more flexible on configuration accepted by this cookbook #410

Closed kamaradclimber closed 7 years ago

kamaradclimber commented 7 years ago

Whenever a new consul version is released, one need to patch libraries/consul_config.rb to extend the list of supported options.

This makes it a bit painful.

It is possible to do hacky stuff with the option_collector by reopening the resource but it is not really straightforward for most users.

Would it be possible to allow to specify new options without encountering:

undefined method `node_meta' for ConsulCookbook::Resource::ConsulConfig
kamaradclimber commented 7 years ago

Provided that #411 is merged, it is actually doable via attributes:

default['consul']['config']['options']['node_meta']['rack'] = 'myrack'

thx!

lock[bot] commented 4 years ago

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.