Closed optix2000 closed 7 years ago
Probably related to https://github.com/bbaugher/apache_zookeeper/commit/08161d4fb30a45865977779d758d3c591cf3573e
If you override version or mirror in a wrapper cookbook, the binary_url isn't changed with it.
version
mirror
binary_url
ie zookeeper-wrapper/recipes/default.rb
zookeeper-wrapper/recipes/default.rb
include_recipe 'apache_zookeeper'
zookeeper-wrapper/attributes/default.rb
default['apache_zookeeper']['mirror'] = 'https://mirrors.ocf.berkeley.edu/apache/zookeeper/' default['apache_zookeeper']['version'] = '3.4.10'
Results in this being rendered as the node attributes:
apache_zookeeper: !ruby/hash-with-ivars:Chef::Node::ImmutableMash elements: install_java: true install_dir: "/opt/zookeeper" version: 3.4.10 mirror: https://mirrors.ocf.berkeley.edu/apache/zookeeper/ binary_url: http://archive.apache.org/dist/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
It looks like the render order for attributes doesn't allow binary_url to be rendered dynamically from overriding attributes while it's in attributes.rb
attributes.rb
binary_url probably needs to be rendered in the recipe, with a check to see if there's an attribute override.
Fixed
Released, https://supermarket.chef.io/cookbooks/apache_zookeeper/versions/1.1.1
Thanks for the quick turnaround!
Probably related to https://github.com/bbaugher/apache_zookeeper/commit/08161d4fb30a45865977779d758d3c591cf3573e
If you override
version
ormirror
in a wrapper cookbook, thebinary_url
isn't changed with it.ie
zookeeper-wrapper/recipes/default.rb
zookeeper-wrapper/attributes/default.rb
Results in this being rendered as the node attributes:
It looks like the render order for attributes doesn't allow
binary_url
to be rendered dynamically from overriding attributes while it's inattributes.rb