You are here
Suggestion: Add support for application version
While I was working on the Ansible appliance, I came across an issue I couldn't figure out how to address.
The Problem: The appliance build process leverages the Python package manager, pip, to install the latest stable versiion of Ansible. Ansible uses a rapid development/release cycle which means every time the build is run, the version of Ansible changes. I have to remember to update the README.rst file every time the version changes. I could not figure out a way to have the build process update the README.rst automatically.
That got me thinking that if there was a way to pass appliance version in a standard way, the README.rst could be updated by variable substitution. Since app version informaton is not included in the turnkey-version string, a new command would be needed.
# turnkey-version turnkey-ansible-13.1-rc1-wheezy-amd64 # turnkey-app-version ansible-1.6.10
or
# turnkey-version turnkey-drupal7-13.1-wheezy-amd64 # turnkey-app-version drupal-7.30
TKLdev could then return the information as a variable which could be used in the README.md or README.rst.