Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2418

Develop "mender config" tool for interactive configuration

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alfrunes Alf-Rune Siqveland
                Reporter:
                lluis Lluís Campos
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel