WIP. Ansible role for cncf distibution, previously known as docker registry.
Installs from binaries, runs with systemd, doesn't require docker to run.
The main variable you need is cncf_distribution_config. Since registry is configured using yaml, you can just pass any supported config you need to it.
By default, it ships with sample config which mirrors docker.io registry and uses local storage, listening to port 5000 for registry itself, and 5001 for prometheus metrics:
cncf_distribution_config:
storage:
filesystem:
rootdirectory: /var/lib/registry
http:
addr: 0.0.0.0:5000
secret: asecretforlocaldevelopment
debug:
addr: 0.0.0.0:5001
prometheus:
enabled: true
path: /metrics
proxy:
remoteurl: https://registry-1.docker.io
Additionally, if you specify different directory, it will be automatically created on ansible run.