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
Updating version does not update the binary #38
Comments
Yeah, I believe that is due to using the 'creates' attribute with the 'cherry_pick' action in the ark resource - https://github.com/adamkrone/chef-consul-template/blob/master/recipes/install_binary.rb#L32 using 'creates', keeps the extraction from running every time, since it checks for existence of file. To handle updates, ark :install should probably be used to install to a versioned path and use a symlink to the binary. That or do version checking of the consul-template library. |
Nice catch @ccannell67 ! Going to ping @someara @sigje @tas50, Should I open an issue in ark ? |
It sounds like we should be symlinking, or using our own guard, as @ccannell67 mentioned. I should have some time over the holidays to take a look at this, but feel free to submit a PR if you'd like to take a stab at it. |
- removes ark (uses libarchive instead) - fixes version updates using a symlink (Issue #38) - fixes issue that could cause a zero-length consul-template file to be created (Issue #40) - updates checksums to use releases.hashicorp.com for all version (also simplified install_binary logic) - adds new 0.12.2 version to checksums
@scalp42 I just merged some changes into master that updates the way binaries are downloaded/extracted/etc. I moved away from ark, and it's now using a symlink. Let me know if this fixes things for you. If everything checks out, I will be releasing a new version on the supermarket soon. |
@adamkrone just saw that. Thanks for looking into it. I'm hoping to tinker with it today or Tuesday! |
Testing. |
@adamkrone working great! Updated consul-template version itself and the chef-consul-template cookbook version at same time. 💯 |
Closing as it's fixed in master. |
Upgrading does not appear to be upgrading the binary:
The text was updated successfully, but these errors were encountered: