#2191 (closed) quietly happened because the postgresql.conf.erb template changed but the geo-postgresql spec did not detect this. We should refactor the specs so that changing the template will cause a spec failure in the geo-postgresql recipe if the attribute is not added there. Or make reasonable defaults that just work.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related or that one is blocking others.
Learn more.
@stanhu Ideally we should be able to reuse the default attributes from the original recipe, so when this type of change happens we inherit the change. So let's say that in chef terminology the "default" attribute cames from the original recipe, and we ours will be the "normal" attributes (so we "override" anything we want, but fallback to the original attribute).
Reference:
I don't know how to do that in Omnibus, do you know @marin@twk3?
I don't see how we can check in specs for this type of change, unless we compare a fixture file with the output file from the template, which is not ideal.
Not sure if this will work because they are in separate files, but can we just dup the postgres defaults for the geo postgres. Similar to what we do for the different nginx configs?
Looks like there is include_attributes: https://blog.chef.io/2013/02/05/chef-11-in-depth-attributes-changes/, if it works as expected, we can re-use the attributes from the first cookbook and just define the differences with force_default[] or the shorter version: default![].