Skip to content

Easier use of an internal helper image mirror #89

@kasimon

Description

@kasimon

This is somehow related to #46 but with a slightly different focus. Our servers cannot access the internet directly. They rely on an internal mirror for packages and other downloadable assets. The main problems we are having with the handling of the helper image are the following:

  • The HELPER_URL variable defines both the location of the images (https://cdn.synnefo.org/) and the exact versioned file name (snf_image_helper_image-0.20.tar.xz).
  • The only way to point snf-image-update-helper to an alternative location where it can access the helper images is by settings HELPER_URL in /etc/default/snf-image-update-helper.
  • This means updates of the snf-image package and changing the defaults file have to be synchronized, which can be a hassle especially when the file content is controlled by a configuration management tool like puppet.

Suggestions to make snf-image more mirror-friendly:

  • replace/supplement HELPER_URL by a second HELPER_URL_BASE variable containing the common location of all helper images, e.g. https://cdn.synnefo.org/ or https://mirror.somecompany.com/snf-images/
  • if HELPER_URL is not set and HELPER_URL_BASE is, let snf-image-update-helper build the full path to the image itself, as it should know the version it needs. This would allow to statically set the HELPER_URL_BASE via config management without the need to change it when the package is updated.
  • Provide a mirror mechanism to clone all existing helper images to a local mirror, for example via ftp or rsync. Run before each update of the internal package mirror, this would allow seamless updates without further manual intervention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions