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
turnkey-version could provide additional info #802
Comments
Excellent idea. In addition to the '-v' option, I'd like to suggest a '-j' option to return the same information in a .json format. This would make the turnkey_facts module in the Ansible appliance trivial. Example of the current turnkey_facts output: |
I'm pinning this to the v15.0 milestone for now. I'm not sure if it'll happen or not, but it almost certainly won't if it's not on the milestone! 😄 |
WRT to We've updated |
I'm going to update the OP with some more ideas re what this improved |
WIP can be seen here: https://github.com/JedMeister/turnkey-version/tree/extra-functionality |
The MVP of the discussion has been added via this PR: https://github.com/turnkeylinux/turnkey-version. I'm going to unpin to milestones for now though as we're deep in "wishlist" territory to implement any more of the ideas. |
Currently
turnkey-version
can be quite useful for determining the version of TurnKey which the system was originally installed with.Proposed switches/info:
-f|--file=PATH/TO/FILE
- read turnkey-version info from PATH/TO/FILE (defaults to/etc/turnkey_version
if not set)-s|--string="TKL_VER_STR"
- useTKL_VER_STR
as turnkey-version (rather than reading from file); bonus points if it works with or without leadingturnkey-
.Info derived from the turnkey-version file or string (as above); assuming
turnkey-version
(default behaviour) returns:turnkey-core-15.0-stretch-amd64
-t|--tkl-appver
- return space separate string of the 4 components - i.e.app-name tkl-version debian-codename architecture
- e.g.core 15.0 stretch amd64
....
-It would be useful if it also supported providing additional info (some items noted below end with '?' where unsure on whether or not they are a good idea...):
tklbam
,confconsole
, etc).Perhaps it could be somewhat modelled on the Proxmox
pveversion
commandline utility?E.g. (on my home PVE server):
Basic output:
Complete output (i.e. verbose):
BTW, looks like I need to update! 😄
The text was updated successfully, but these errors were encountered: