Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-84936

[Epic]: podman_registries_conf TOML tables not supported [rhel-10]

    • [Epic]: podman_registries_conf TOML tables not supported [rhel-10]
    • Low
    • Red Hat Enterprise Linux
    • 50% To Do, 25% In Progress, 25% Done
    • rhel-sst-system-roles
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Dev ack
    • Enhancement
    • Unspecified
    • Unspecified
    • Unspecified

      This is a clone of issue RHEL-84930 to use for version rhel-10.1

      Original description:

        1. Summary

      The `podman_registries_conf` configuration variable is missing support for TOML tables.
      TOML tables are required to configure e.g. mirroring registries.

        1. Details

      Example `registries.conf` with TOML tables for registry mirroring:
      ```
      $ cat ~/.config/containers/registries.conf

      [[registry]]
      location="docker.io"
      [[registry.mirror]]
      location="jfrog.io"

      [[registry]]
      location="ghcr.io"
      [[registry.mirror]]
      location="jfrog.io"

      [[registry]]
      location="quay.io"
      [[registry.mirror]]
      location="jfrog.io"

      [[registry]]
      location="registry.access.redhat.com"
      [[registry.mirror]]
      location="jfrog.io"
      ```

      I've found no way to use the `podman_registries_conf` conf variable to get the same result with the ansible role.
      For me it looks like the `templates/toml.j2` template which is used to render the registries.conf has no support for TOML tables.

      ```
      $ man containers-registries.conf
      ...
      NAMESPACED [[registry]] SETTINGS
      The bulk of the configuration is represented as an array of [[registry]] TOML tables; the settings may therefore differ among different registries as well as among different
      namespaces/repositories within a registry.
      ...
      ```

      Blog post from RedHat:
      https://www.redhat.com/en/blog/manage-container-registries

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: