Ansible role to deploy a container registry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Le Hou b54b8acf4d Update to opendev 4 weeks ago
ci-scripts Fix linting issues 4 months ago
defaults Allow to skip docker reconfiguration 5 months ago
handlers Fix become for tasks and handlers 3 months ago
meta meta/main: add role description 1 year ago
tasks Improve condition checking about docker registry config 3 months ago
templates Restore old task for docker-daemon.json 1 year ago
tests Update role name in test.yml 1 year ago
vars docker: add support for additional sockets 1 year ago
zuul.d Remove release-openstack-server 7 months ago
.gitignore First commit in Gerrit 1 year ago
.gitreview OpenDev Migration Patch 1 month ago
LICENSE first commit 1 year ago
README.rst Allow to skip docker reconfiguration 5 months ago
ansible-requirements.txt First commit in Gerrit 1 year ago
ansible.cfg Fix ansible role name in cfg files 1 year ago
requirements.txt First commit in Gerrit 1 year ago
setup.cfg Update to opendev 4 weeks ago
setup.py First commit in Gerrit 1 year ago
test-requirements.txt First commit in Gerrit 1 year ago
tox.ini Update to opendev 4 weeks ago

README.rst

ansible-role-container-registry

A role to deploy a container registry. For now, the role only support Docker Registry v2.

Role Variables

Variables used for container registry
Name Default Value Description
container_registry_debug false Enable debug option in Docker
container_registry_deploy_docker true Whether or not to deploy Docker
container_registry_deploy_docker_distribution true Whether or not to deploy Docker Distribution
container_registry_deployment_user centos User which needs to manage containers
container_registry_docker_options --log-driver=journald --signature-verification=false --iptables=false --live-restore Options given to Docker configuration
container_registry_insecure_registries [] Array of insecure registries
container_registry_network_options [undefined] Docker networking options
container_registry_host localhost Docker registry host
container_registry_port 8787 Docker registry port
container_registry_mirror [undefined] Docker registry mirror
container_registry_storage_options -s overlay2 Docker storage options
container_registry_selinux false Whether or not SElinux is enabled for containers
container_registry_additional_sockets [undefined] Additional sockets for containers
container_registry_skip_reconfiguration false Do not perform container registry reconfiguration if it's already configured

Requirements

  • ansible >= 2.4
  • python >= 2.6

Dependencies

None

Example Playbooks

Modify Image

The following playbook will deploy a Docker registry:

- hosts: localhost
  become: true
  roles:
    - container-registry

License

Apache 2.0