Details
-
Type:
Task
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Sprint:MEN Sprint 96, MEN Sprint 97, MEN Sprint 98
-
Story Points:13
-
Epic Link:
-
Backlog:yes
-
Days in progress:21
Description
We want to have a simple CLI tool to assist the user in configuring the device for Mender client to run on. We have decided to not depend on ncurses, so the tool will only use simple prompt-based input.
Acceptance criteria:
- The setup tool is created in mender-dist-packages repository
- The tool interactively ask the user for required input
- The tool checks for current values before overriding
- For the tenant token part, the tool will automatically fetch it from Hosted Mender using the user credentials
- The tool has a "sanity check" option that will verify the device is ready (see separate criteria for this)
- The tool takes optional parameters to skip the corresponding prompt
- This will be the use case for the deb postinst script
Criteria for "device ready":
- There is valid string device_type
- There is a mender.conf file
- The mender.conf file has either TenantToken or ServerURL with values different than default ones