tripleo-common/roles/tripleo-container-tag
Emilien Macchi 7370ca76aa tripleo-container-tag: pull image before tagging
Adding a container pull before the tagging operation so we are sure that
the image is in the local registry.

We were relying on docker-puppet.py script to perform the pull but now
we do the tag with Ansible, it's safer to ensure that the image is here.

This patch runs a container pull before the container tag command.
It works with both podman & docker since we use container_cli.

Change-Id: Ib9d4ae9c2b415e427deb4b0cfc441febaa210f77
Closes-Bug: #1802511
2018-11-09 08:54:58 -05:00
..
defaults Implement tripleo-container-tag role 2018-11-05 19:45:22 +00:00
tasks tripleo-container-tag: pull image before tagging 2018-11-09 08:54:58 -05:00
README.md Implement tripleo-container-tag role 2018-11-05 19:45:22 +00:00

README.md

tripleo-container-tag

An Ansible role to tag Pacemaker-managed containers.

Requirements

It requires Docker or Podman on the host, depending which container CLI is used.

Role variables

  • container_image: -- Name of the container image to tag.
  • container_image_latest: -- Name of the tag.
  • container_cli: -- Name of the Container CLI tool (default to docker).

Example Playbook

Sample playbook to call the role:

  • name: Tag Pacemaker containers hosts: all roles:
    • tripleo-container-tag vars: container_image: haproxy container_image_latest: pcmklatest container_cli: docker

License

Free software: Apache License (2.0)

Author Information

OpenStack TripleO team