sous-chefs / consul

Development repository for the consul cookbook

Home Page:https://supermarket.chef.io/cookbooks/consul

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Be more flexible on configuration accepted by this cookbook

kamaradclimber opened this issue · comments

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

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

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

thx!

commented

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.