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

Offer the possibility to split transient mender-client config

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      Currently, the transient config is stored in a single config file.

      The allowed configuration variables are the following :

      • RootfsPartA
      • RootfsPartB
      • InventoryPollIntervalSeconds
      • RetryPollIntervalSeconds
      • ArtifactVerifyKey
      • ServerCertificate
      • ServerURL
      • UpdatePollIntervalSeconds

      In a block update setup, I would recommend to split the variables in atomic responsibility groups.

      1) Related to the system architecture (responsibility of system architect)

      • RootfsPartA
      • RootfsPartB

      2) Related to software publication (responsibility of software editor)

      • ArtifactVerifyKey

      3) Related to device operation (responsibility of fleet maintainer ):

      • InventoryPollIntervalSeconds
      • RetryPollIntervalSeconds
      • ServerCertificate
      • ServerURL
      • UpdatePollIntervalSeconds

      In our specific case, we edit the software but do not operate the devices. Therefore mixing 2 and 3 will be problematic for some update scenarios. Having theses in separate files would be a plus.

      Also, if the problem may seem small a the moment, this could get worse as new variables are added. I encourage to take a good start with this.

      This is sometimes technically solved by reading the configuration in a directory, reading all the file in sorted (by file name) order. This gives a huge flexibility while keeping the possibility to have a very simple setup. Example : https://developer.gnome.org/NetworkManager/stable/NetworkManager.conf.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              christian Christian Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel