Skip to content

Commit

Permalink
Merge pull request #193 from stackhpc/upstream/zed-2023-10-23
Browse files Browse the repository at this point in the history
Synchronise zed with upstream
  • Loading branch information
priteau authored Oct 23, 2023
2 parents 87f14fc + 0638862 commit 3880a55
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/deploy-containers/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ deploy_containers_defaults:
restart_policy: "unless-stopped"

deploy_containers_docker_api_timeout: 120

deploy_containers_registry_attempt_login: "{{ kolla_docker_registry_username is truthy and kolla_docker_registry_password is truthy }}"
3 changes: 1 addition & 2 deletions ansible/roles/deploy-containers/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
password: "{{ kolla_docker_registry_password }}"
reauthorize: yes
when:
- kolla_docker_registry_username is truthy
- kolla_docker_registry_password is truthy
- deploy_containers_registry_attempt_login | bool

- name: Deploy containers (loop)
include_tasks: deploy.yml
Expand Down
23 changes: 23 additions & 0 deletions doc/source/configuration/reference/seed-custom-containers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,26 @@ List of Kayobe applied defaults to required docker_container variables:
.. literalinclude:: ../../../../ansible/roles/deploy-containers/defaults/main.yml
:language: yaml


Docker registry
===============

Seed containers can be pulled from a docker registry deployed on the seed,
since the docker registry deployment step precedes the custom container
deployment step.

It is also possible to deploy a custom containerised docker registry as a
custom seed container. In this case, basic authentication login attempts can be
disabled by setting

.. code-block:: yaml
:caption: ``kolla.yml``
deploy_containers_registry_attempt_login: false
Without this setting, the login will fail because the registry has not yet been
deployed.

More information on deploying a docker registry can be found :ref:`here
<configuration-docker-registry>`.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
features:
- |
Attempts to log in to the kolla docker registry can be skipped by setting
``deploy_containers_registry_attempt_login`` to false.
This is required for deployments using a non-standard registry
deployed on the seed during the deploy-container step, since it takes
place after the registry login attempt.

0 comments on commit 3880a55

Please sign in to comment.